From ff4e06104903c8cb03600739fa51afb905188b18 Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Sat, 9 May 2015 00:03:42 +0200 Subject: 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. --- src/librustdoc/html/render.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/librustdoc/html/render.rs') diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 5a828e8376e..4074a659442 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -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(..) => { -- cgit 1.4.1-3-g733a5