From f5df7e086516ba6398f2a1538c1c6d3193846f55 Mon Sep 17 00:00:00 2001 From: mitaa Date: Tue, 23 Feb 2016 10:24:53 +0100 Subject: [PATCH] Show associated types in inherent impls --- src/librustdoc/html/render.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index a30c087bd8b8..8a061e3a528e 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 {