about 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
committerDavid Tolnay <dtolnay@gmail.com>2020-01-04 11:28:53 -0800
commit90adafbc9e6583fa2edae0f320e7fe51407e7f3b (patch)
treee9f0d7fd6d2105674829a511691a599a9bba3df6 /src/test/debuginfo/enum-thinlto.rs
parentcd8377d37e9bc47f9a5a982c41705a7800cbb51d (diff)
downloadrust-90adafbc9e6583fa2edae0f320e7fe51407e7f3b.tar.gz
rust-90adafbc9e6583fa2edae0f320e7fe51407e7f3b.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