Rustdoc reports non accessable items in blocks with --document-private-items
, even with #[doc(hidden)]
#106373
Labels
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Produces with
rustdoc +nightly src/lib.rs --document-private-items
which erroniously includes
stry
,ShouldBeHidden
, andShouldAlsoBeHidden
.Stable (1.66.0) gets this right
It's debatable what the semantics of
--document-private-items
should be for items in blocks without#[doc(hidden)]
1, but here, we're just wrong.We also can't just ignore all items in
#[doc(hidden)]
blocks, as this would break a load of users, eg serde.Zulip Discussion
Probably, caused by #104889, cc @GuillaumeGomez
Footnotes
FWIW, I think they should still be hidden, as their not accessible outside the block. ↩
The text was updated successfully, but these errors were encountered: