90adafbc9e
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.
9 lines
191 B
Rust
9 lines
191 B
Rust
// compile-flags: --document-private-items
|
|
|
|
// @!has issue_67851_private/struct.Hidden.html
|
|
#[doc(hidden)]
|
|
pub struct Hidden;
|
|
|
|
// @has issue_67851_private/struct.Private.html
|
|
struct Private;
|