about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorpierzchalski <e.a.pierzchalski@gmail.com>2016-04-15 14:41:54 +1000
committerpierzchalski <e.a.pierzchalski@gmail.com>2016-04-15 14:41:54 +1000
commitec5e0f81cf54ca287e6652923e1bf46f4fc1c783 (patch)
tree92b688d85609dd73f22e5ab2d124dc3d275519d5 /src/test/rustdoc
parentd95ca2822cdc67ddec96d16533e23a10d6bfd136 (diff)
downloadrust-ec5e0f81cf54ca287e6652923e1bf46f4fc1c783.tar.gz
rust-ec5e0f81cf54ca287e6652923e1bf46f4fc1c783.zip
Add flag for whether an item is default or not.
We don't want to render default item docs but previously
`doctraititem` naively delegated to the trait definition in those
cases.

Updated tests to also check that this doesn't strip default item
docs from the trait definition.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/manual_impl.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/rustdoc/manual_impl.rs b/src/test/rustdoc/manual_impl.rs
index 6675a0fd43b..5eccf97bb5f 100644
--- a/src/test/rustdoc/manual_impl.rs
+++ b/src/test/rustdoc/manual_impl.rs
@@ -8,6 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// @has manual_impl/trait.T.html
+// @has  - '//*[@class="docblock"]' 'Docs associated with the trait definition.'
+// @has  - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
+// @has  - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
 /// Docs associated with the trait definition.
 pub trait T {
     /// Docs associated with the trait a_method definition.