about summary refs log tree commit diff
path: root/src/test/rustdoc/issue-46380.rs
AgeCommit message (Collapse)AuthorLines
2020-01-04Distinguish between private items and hidden items in rustdocDavid Tolnay-5/+0
I believe rustdoc should not be conflating private items (visibility lower than `pub`) and hidden items (attribute `doc(hidden)`). This matters now that Cargo is passing --document-private-items by default for bin crates. In bin crates that rely on macros, intentionally hidden implementation details of the macros can overwhelm the actual useful internal API that one would want to document. This PR restores the strip-hidden pass when documenting private items, and introduces a separate unstable --document-hidden-items option to skip the strip-hidden pass. The two options are orthogonal to one another.
2018-12-25Remove licensesMark Rousskov-10/+0
2017-11-30Show hidden items with rustdoc's document-privateChristian Duerr-0/+15
When using `#[doc(hidden)]` elements are hidden from docs even when the rustdoc flag `--document-private-items` is set. This behavior has been changed to display all hidden items when the flag is active.