Skip to content

rustdoc: nested items should not be documented with --document-private-items #110422

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

If we run rustdoc with the --document-private-items option on this code:

pub fn foo() {
    fn bar() {}
}

Both foo and bar are documented, but bar not being accessible outside of foo, it shouldn't be documented.

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