Note that repr(transparent) is not the same as permission to inspect or manipulate the internal representation of a type. That permission only exists if the field is also exposed as pub.
As such, we should consider hiding #[repr(transparent)] when the field is not otherwise visible. This should not be the case when --document-private-items is passed for reasons that should be obvious.
This will affect some stdlib structs such as NonZeroU8
Per @dtolnay in #72841:
As such, we should consider hiding
#[repr(transparent)]
when the field is not otherwise visible. This should not be the case when--document-private-items
is passed for reasons that should be obvious.This will affect some stdlib structs such as
NonZeroU8
@rustbot label +A-docs +C-enhancement +T-rustdoc