about summary refs log tree commit diff
path: root/src/test/rustdoc/manual_impl.rs
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-05-21 21:24:03 -0700
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-05-22 09:07:24 -0700
commit5ebbed6cb02fb4d0272a0b86c500d8f668de321d (patch)
tree7641034271cce55d1fab7e1405265edb4ac357e9 /src/test/rustdoc/manual_impl.rs
parent5dc8789e300930751a78996da0fa906be5a344a2 (diff)
downloadrust-5ebbed6cb02fb4d0272a0b86c500d8f668de321d.tar.gz
rust-5ebbed6cb02fb4d0272a0b86c500d8f668de321d.zip
Fix auto-hide for implementations and implementors.
This sets their toggles to be closed in the HTML (matching the default
setting), and opens them if the setting indicates to do so.

This distinguishes between implementations and implementors based on
being descendants of certain named elements.
Diffstat (limited to 'src/test/rustdoc/manual_impl.rs')
-rw-r--r--src/test/rustdoc/manual_impl.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/rustdoc/manual_impl.rs b/src/test/rustdoc/manual_impl.rs
index 776a191ceef..5b448bd1923 100644
--- a/src/test/rustdoc/manual_impl.rs
+++ b/src/test/rustdoc/manual_impl.rs
@@ -65,7 +65,8 @@ impl T for S2 {
 }
 
 // @has manual_impl/struct.S3.html '//*[@class="trait"]' 'T'
-// @has  - '//details[@open=""]/div[@class="docblock"]' 'Docs associated with the S3 trait implementation.'
+// @has  - '//details/div[@class="docblock"]' 'Docs associated with the S3 trait implementation.'
+// @!has  - '//details[@open=""]/div[@class="docblock"]' 'Docs associated with the S3 trait implementation.'
 // @has  - '//details[@open=""]/div[@class="docblock"]' 'Docs associated with the S3 trait b_method implementation.'
 // @!has - '//div[@class="impl-items"]/details[@open=""]//div[@class="docblock"]' 'Docs associated with the trait a_method definition.'
 // @has - '//div[@class="impl-items"]/details//div[@class="docblock"]' 'Docs associated with the trait a_method definition.'