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: nested items should not be documented with --document-private-items #110422
I was just thinking today that since we were going through the whole HIR without checking whether or not we were in a block, all elements inside the block could be visible. Tested and... 😨
For reference, I put up serde-rs/serde#2426 because this was causing documentation to become really verbose with serde + --document-private-items. If you fix this such that we no longer document those items, we could probably revert that PR.
If we run
rustdocwith the--document-private-itemsoption on this code:Both
fooandbarare documented, butbarnot being accessible outside offoo, it shouldn't be documented.