Skip to content

Commit a6c9b9a

Browse files
committed
---
yaml --- r: 185744 b: refs/heads/auto c: 58a8103 h: refs/heads/master v: v3
1 parent 22cc06c commit a6c9b9a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-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: 7ae8889286535446f9a7c0d4c3e214b55d7063e6
13+
refs/heads/auto: 58a8103df9077d581a7b17824a7a4b9be695ec5f
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustdoc/doctree.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pub struct Module {
3939
pub vis: ast::Visibility,
4040
pub stab: Option<attr::Stability>,
4141
pub impls: Vec<Impl>,
42+
pub def_traits: Vec<DefaultTrait>,
4243
pub foreigns: Vec<ast::ForeignMod>,
4344
pub macros: Vec<Macro>,
4445
pub is_crate: bool,
@@ -65,6 +66,7 @@ impl Module {
6566
constants : Vec::new(),
6667
traits : Vec::new(),
6768
impls : Vec::new(),
69+
def_traits : Vec::new(),
6870
foreigns : Vec::new(),
6971
macros : Vec::new(),
7072
is_crate : false,
@@ -196,6 +198,12 @@ pub struct Impl {
196198
pub id: ast::NodeId,
197199
}
198200

201+
pub struct DefaultTrait {
202+
pub unsafety: ast::Unsafety,
203+
pub trait_: ast::TraitRef,
204+
pub id: ast::NodeId,
205+
}
206+
199207
pub struct Macro {
200208
pub name: Ident,
201209
pub id: ast::NodeId,

branches/auto/src/librustdoc/visit_ast.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,14 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
358358
};
359359
om.impls.push(i);
360360
},
361+
ast::ItemDefTrait(unsafety, ref trait_ref) => {
362+
let i = DefaultTrait {
363+
unsafety: unsafety,
364+
trait_: trait_ref.clone(),
365+
id: item.id
366+
};
367+
om.def_traits.push(i);
368+
}
361369
ast::ItemForeignMod(ref fm) => {
362370
om.foreigns.push(fm.clone());
363371
}

0 commit comments

Comments
 (0)