rust/src/librustdoc/html/render
Guillaume Gomez 085691b137
Rollup merge of #85622 - jsha:untoggle-undocumented, r=GuillaumeGomez
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.

Demo:
https://hoffman-andrews.com/rust/untoggle-undocumented/std/string/struct.String.html
https://hoffman-andrews.com/rust/untoggle-undocumented/std/io/trait.Read.html
2021-06-01 11:29:43 +02:00
..
cache.rs Minimize amount of fake DefIds used in rustdoc 2021-05-15 13:21:35 +02:00
context.rs Rollup merge of #85141 - GuillaumeGomez:maybe_collapsed_doc_value-doc, r=jsha 2021-05-12 17:19:28 +02:00
mod.rs Rollup merge of #85622 - jsha:untoggle-undocumented, r=GuillaumeGomez 2021-06-01 11:29:43 +02:00
print_item.rs Add title for copy to clipboard button in rustdoc 2021-05-31 22:51:59 +08:00
tests.rs Corrected imports for render tests and mod files 2021-03-04 10:25:00 -08:00
write_shared.rs Remove --print unversioned-files from rustdoc 2021-05-28 21:23:53 +02:00