diff options
| author | mitaa <mitaa.ceb@gmail.com> | 2016-02-23 10:24:53 +0100 |
|---|---|---|
| committer | mitaa <mitaa.ceb@gmail.com> | 2016-02-23 21:47:18 +0100 |
| commit | f5df7e086516ba6398f2a1538c1c6d3193846f55 (patch) | |
| tree | 28f15cd7bc279482d9cbd4584ca7f24dfe7752cd | |
| parent | b38a856e3851cd9557a5d79f524cc2e69c5664fc (diff) | |
| download | rust-f5df7e086516ba6398f2a1538c1c6d3193846f55.tar.gz rust-f5df7e086516ba6398f2a1538c1c6d3193846f55.zip | |
Show associated types in inherent impls
| -rw-r--r-- | src/librustdoc/html/render.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index a30c087bd8b..8a061e3a528 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -997,8 +997,9 @@ impl DocFolder for Cache { // Index this method for searching later on if let Some(ref s) = item.name { let (parent, is_method) = match item.inner { - clean::AssociatedConstItem(..) if self.parent_is_trait_impl => { - // skip associated consts in trait impls + clean::AssociatedConstItem(..) | + clean::TypedefItem(_, true) if self.parent_is_trait_impl => { + // skip associated items in trait impls ((None, None), false) } clean::AssociatedTypeItem(..) | @@ -1032,10 +1033,6 @@ impl DocFolder for Cache { ((Some(*last), path), true) } } - clean::TypedefItem(_, true) => { - // skip associated types in impls - ((None, None), false) - } _ => ((None, Some(&*self.stack)), false) }; let hidden_field = match item.inner { |
