Skip to content

--document-private-items does not document private reexports #159109

Description

@shBLOCK

Code

#[doc(hidden)]
pub(crate) struct __ABC;

/// foo bar
#[doc(inline)]
pub(crate) use __ABC as ABC;

Reproduction Steps

cargo doc --document-private-items --open

Expected Outcome

Private reexports should be documented (following reexport doc inline rules) when the --document-private-items option is enabled.

Version

rustdoc 1.98.0-nightly (ce9954c0c 2026-06-26)

Metadata

Metadata

Labels

C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions