You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustdoc: Inconsistant decision to include impl with docs but no visible items #111564
It doesn't make sense that adding #[doc(hidden)] to a private function makes it's block visible, or that running --document-hidden-items makes a block with only private functions visible. I'm not sure what the exact behavior should be here
Impl blocks can be skipped if they are: empty; not a trait impl; and have no
documentation.
There is one special case: if the impl block contains only private items.
The logic makes sense to me: impl blocks with only private items should very likely not be visible to readers. The question here I think should be more "should we do the same with impls containing only hidden items?". What do you think?
Activity
GuillaumeGomez commentedon May 17, 2023
In the code, the comment says:
The logic makes sense to me: impl blocks with only private items should very likely not be visible to readers. The question here I think should be more "should we do the same with impls containing only hidden items?". What do you think?
Rollup merge of rust-lang#111565 - aDotInTheVoid:rdj-impl-viz, r=Guil…
lolbinarycat commentedon Jan 19, 2025
@GuillaumeGomez the "private hidden" case definitely seems like a bug.