Skip to content

Commit 6291fb3

Browse files
committed
---
yaml --- r: 160856 b: refs/heads/auto c: de94f0a h: refs/heads/master v: v3
1 parent 4485fa2 commit 6291fb3

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: dd4c7c00d85a82d3ddda1b453ba2ce649a4d1b41
13+
refs/heads/auto: de94f0affb6e8f700ce1e9c67a9572c9f262a5fa
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustdoc/clean/mod.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,11 @@ pub enum Type {
11351135
mutability: Mutability,
11361136
type_: Box<Type>,
11371137
},
1138+
QPath {
1139+
name: String,
1140+
self_type: Box<Type>,
1141+
trait_: Box<Type>
1142+
},
11381143
// region, raw, other boxes, mutable
11391144
}
11401145

@@ -1260,6 +1265,7 @@ impl Clean<Type> for ast::Ty {
12601265
TyProc(ref c) => Proc(box c.clean(cx)),
12611266
TyBareFn(ref barefn) => BareFunction(box barefn.clean(cx)),
12621267
TyParen(ref ty) => ty.clean(cx),
1268+
TyQPath(ref qp) => qp.clean(cx),
12631269
ref x => panic!("Unimplemented type {}", x),
12641270
}
12651271
}
@@ -1362,6 +1368,16 @@ impl<'tcx> Clean<Type> for ty::Ty<'tcx> {
13621368
}
13631369
}
13641370

1371+
impl Clean<Type> for ast::QPath {
1372+
fn clean(&self, cx: &DocContext) -> Type {
1373+
Type::QPath {
1374+
name: self.item_name.clean(cx),
1375+
self_type: box self.self_type.clean(cx),
1376+
trait_: box self.trait_ref.clean(cx)
1377+
}
1378+
}
1379+
}
1380+
13651381
#[deriving(Clone, Encodable, Decodable)]
13661382
pub enum StructField {
13671383
HiddenStructField, // inserted later by strip passes

branches/auto/src/librustdoc/html/format.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ impl fmt::Show for clean::Type {
485485
}
486486
}
487487
}
488+
clean::QPath { ref name, ref self_type, ref trait_ } => {
489+
write!(f, "&lt;{} as {}&gt;::{}", self_type, trait_, name)
490+
}
488491
clean::Unique(..) => {
489492
panic!("should have been cleaned")
490493
}

0 commit comments

Comments
 (0)