Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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