rustdoc rendered const
s should respect #[doc(hidden)]
fields
#49259
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
For a
struct
andconst
declared as:rustdoc
currently renders:This unhides the hidden
foo
field. Instead, it should respect the#[doc(hidden)]
attribute onfoo
and render the following:Or, better yet, if all fields are hidden, then I'd prefer for it to not render the definition at all:
The text was updated successfully, but these errors were encountered: