Closed
Description
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
@rustbot label +A-docs +C-enhancement +T-rustdoc
Metadata
Metadata
Assignees
Labels
Area: Attributes (`#[…]`, `#![…]`)Area: Documentation for any part of the project, including the compiler, standard library, and toolsArea: the `#[repr(stuff)]` attributeCategory: An issue proposing an enhancement or a PR with one.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.Relevant to the rustdoc team, which will review and decide on the PR/issue.