Skip to content

Missing documentation when re-exporting enumeration variants #35488

Closed
@IvanUkhov

Description

@IvanUkhov

When a private child module defines an enum and pub-uses its variants, and the parent module re-exports the content of the child module:

mod foo {
    pub enum Foo {
        Bar,
    }
    pub use self::Foo::*;
}

pub use self::foo::*;

it is not visible in the documentation of the parent module that the variants of the enum are directly accessible to the user. However, if the child module was public, the pub-use of the variants would be shown on the pages of both modules.

Regards,
Ivan

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.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