rustdoc: Link associated items in search index to trait
This is related to isssue #22442 and solves it partly. This solves the links of associated types and constants, so that they link to the trait page.
This commit is contained in:
parent
6cd7486113
commit
ff4e061049
2 changed files with 4 additions and 1 deletions
|
@ -905,6 +905,8 @@ 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::AssociatedTypeItem(..) |
|
||||
clean::AssociatedConstItem(..) |
|
||||
clean::TyMethodItem(..) |
|
||||
clean::StructFieldItem(..) |
|
||||
clean::VariantItem(..) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue