summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-05-11 20:02:18 +0000
committerbors <bors@rust-lang.org>2015-05-11 20:02:18 +0000
commit4b88e8f63eeaf557c916a0a1e73150b028c44c52 (patch)
tree0d97fb7ff7286c47dca23c36bb19917d4452b818 /src/test
parenta90dd32949a2b7a984bce54b4affa203bb6605b0 (diff)
parentc46f3ff12b0a0b9c55df89eeb92603e9e488b2a7 (diff)
downloadrust-4b88e8f63eeaf557c916a0a1e73150b028c44c52.tar.gz
rust-4b88e8f63eeaf557c916a0a1e73150b028c44c52.zip
Auto merge of #25225 - bluss:doc-search-assoc-items, r=alexcrichton
Rustdoc fixes for associated items

This is related to isssue #22442 and solves it partly.

This solves the search index links of associated types and constants,
so that they link to the trait page.

Also add an Associated Constants section if constants are present.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rustdoc/assoc-consts.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/rustdoc/assoc-consts.rs b/src/test/rustdoc/assoc-consts.rs
index cd8d7ec16dc..20d4c744414 100644
--- a/src/test/rustdoc/assoc-consts.rs
+++ b/src/test/rustdoc/assoc-consts.rs
@@ -13,6 +13,7 @@
 pub trait Foo {
     // @has assoc_consts/trait.Foo.html '//*[@class="rust trait"]' \
     //      'const FOO: usize;'
+    // @has - '//*[@id="associatedconstant.FOO"]' 'const FOO'
     const FOO: usize;
 }