Show associated types in inherent impls
This commit is contained in:
parent
b38a856e38
commit
f5df7e0865
1 changed files with 3 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue