rustdoc: how does #[doc(hidden)]
interact with --document-private-items
?
#46380
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I have types
Public
(which is exported) andPrivate
(which isn't) and animpl Add<Private> for Public
. I would like theimpl Add<Private> for Public
to appear in the Rustdoc output only when using--document-private-items
.As far as I can tell, the
impl Add<Private> for Public
appears in the normal rustdoc output unless it has a#[doc(hidden)]
attribute. But this prevents the impl from appearing with--document-private-items
.Is
--document-private-items
supposed to override#[doc(hidden)]
? Is there another way to hideimpl Add<Private> for Public
from the public rustdoc output?The text was updated successfully, but these errors were encountered: