summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2020-01-04 10:58:32 -0800
committerMark Rousskov <mark.simulacrum@gmail.com>2020-01-23 16:10:52 -0500
commit4bed1c7b9e98babe6de07ed075a7ee354dd18c28 (patch)
treee2d33a5537bcd08969d4eda2cc0f254e3c3afe04 /src/test/debuginfo/enum-thinlto.rs
parent5386cbdca4200b50572bbe7b5869584efaf62476 (diff)
downloadrust-4bed1c7b9e98babe6de07ed075a7ee354dd18c28.tar.gz
rust-4bed1c7b9e98babe6de07ed075a7ee354dd18c28.zip
Distinguish between private items and hidden items in rustdoc
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.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions