diff options
| author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-05-23 08:09:39 -0700 |
|---|---|---|
| committer | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-05-30 21:15:22 -0700 |
| commit | 10bafe1975e53769180701508e2b8cd3a3b34a0e (patch) | |
| tree | 2e9b4f4243374f1aa0257a9535dbb2d9718e6032 /src/test/rustdoc/inline_cross/impl-inline-without-trait.rs | |
| parent | 84b1005bfd22e2cb2a4c13b0b81958fe72628354 (diff) | |
| download | rust-10bafe1975e53769180701508e2b8cd3a3b34a0e.tar.gz rust-10bafe1975e53769180701508e2b8cd3a3b34a0e.zip | |
Remove toggle for "undocumented items."
Per discussion in #84326. For trait implementations, this was misleading: the items actually do have documentation (but it comes from the trait definition). For both trait implementations and trait implementors, this was redundant: in both of those cases, the items are default-hidden by different toggle at the level above. Update tests: Remove XPath selectors that over-specified on details tag, in cases that weren't testing toggles. Add an explicit test for toggles on methods. Rename item-hide-threshold to toggle-item-contents for consistency.
Diffstat (limited to 'src/test/rustdoc/inline_cross/impl-inline-without-trait.rs')
| -rw-r--r-- | src/test/rustdoc/inline_cross/impl-inline-without-trait.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/rustdoc/inline_cross/impl-inline-without-trait.rs b/src/test/rustdoc/inline_cross/impl-inline-without-trait.rs index cc0596c70ce..9b67022fd4b 100644 --- a/src/test/rustdoc/inline_cross/impl-inline-without-trait.rs +++ b/src/test/rustdoc/inline_cross/impl-inline-without-trait.rs @@ -8,6 +8,5 @@ extern crate impl_inline_without_trait; // @has 'foo/struct.MyStruct.html' // @has - '//*[@id="method.my_trait_method"]' 'fn my_trait_method()' -// @!has - '//details[@open=""]/details/div[@class="docblock"]' 'docs for my_trait_method' -// @has - '//details/details/div[@class="docblock"]' 'docs for my_trait_method' +// @has - '//div[@class="docblock"]' 'docs for my_trait_method' pub use impl_inline_without_trait::MyStruct; |
