1
Fork 0

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:
Ulrik Sverdrup 2015-05-09 00:03:42 +02:00
parent 6cd7486113
commit ff4e061049
2 changed files with 4 additions and 1 deletions

View file

@ -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(..) => {