-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
rustdoc: how does #[doc(hidden)] interact with --document-private-items? #46380
Copy link
Copy link
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I have types
Public(which is exported) andPrivate(which isn't) and animpl Add<Private> for Public. I would like theimpl Add<Private> for Publicto appear in the Rustdoc output only when using--document-private-items.As far as I can tell, the
impl Add<Private> for Publicappears 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-itemssupposed to override#[doc(hidden)]? Is there another way to hideimpl Add<Private> for Publicfrom the public rustdoc output?