Skip to content

Commit f5df7e0

Browse files
committed
Show associated types in inherent impls
1 parent b38a856 commit f5df7e0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/librustdoc/html/render.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,9 @@ impl DocFolder for Cache {
997997
// Index this method for searching later on
998998
if let Some(ref s) = item.name {
999999
let (parent, is_method) = match item.inner {
1000-
clean::AssociatedConstItem(..) if self.parent_is_trait_impl => {
1001-
// skip associated consts in trait impls
1000+
clean::AssociatedConstItem(..) |
1001+
clean::TypedefItem(_, true) if self.parent_is_trait_impl => {
1002+
// skip associated items in trait impls
10021003
((None, None), false)
10031004
}
10041005
clean::AssociatedTypeItem(..) |
@@ -1032,10 +1033,6 @@ impl DocFolder for Cache {
10321033
((Some(*last), path), true)
10331034
}
10341035
}
1035-
clean::TypedefItem(_, true) => {
1036-
// skip associated types in impls
1037-
((None, None), false)
1038-
}
10391036
_ => ((None, Some(&*self.stack)), false)
10401037
};
10411038
let hidden_field = match item.inner {

0 commit comments

Comments
 (0)