about summary refs log tree commit diff
path: root/src/librustdoc/html/render.rs
diff options
context:
space:
mode:
authorUlrik Sverdrup <root@localhost>2015-05-09 00:03:42 +0200
committerUlrik Sverdrup <root@localhost>2015-05-09 00:03:42 +0200
commitff4e06104903c8cb03600739fa51afb905188b18 (patch)
tree02e2ab43fc5bb164dd4fd3e1f45d77f3e6e75afc /src/librustdoc/html/render.rs
parent6cd748611346dec3181f81ca3aa551cce0529343 (diff)
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.
Diffstat (limited to 'src/librustdoc/html/render.rs')
-rw-r--r--src/librustdoc/html/render.rs2
1 files changed, 2 insertions, 0 deletions
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(..) => {