about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-01-09 00:29:13 +0900
committerGitHub <noreply@github.com>2020-01-09 00:29:13 +0900
commit03fe834a23eb12679352eadd89c20ba251992cd4 (patch)
tree2aa9039deb54ef3cb782b078bc493d9a46345b99 /src/test/debuginfo/enum-thinlto.rs
parent429a7e7522fcec73ce2cbbc1ef47688276ce08d5 (diff)
parent90adafbc9e6583fa2edae0f320e7fe51407e7f3b (diff)
downloadrust-03fe834a23eb12679352eadd89c20ba251992cd4.tar.gz
rust-03fe834a23eb12679352eadd89c20ba251992cd4.zip
Rollup merge of #67875 - dtolnay:hidden, r=GuillaumeGomez
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.

Fixes #67851. Closes #60884.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions