Skip to content

Rustdoc: exposes private modules that reexport functions #10810

Closed
@mstewartgallus

Description

@mstewartgallus

The following code makes rustdoc show the module to the outside world when the module should be private.

#[crate_type = "lib"];

mod should_not_be_visible_outside_of_lib {
    pub use self::context::function_exposing_bug;

    mod context {
        pub fn function_exposing_bug() {}
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    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