Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing documentation when re-exporting enumeration variants #35488

Closed
IvanUkhov opened this issue Aug 8, 2016 · 0 comments
Closed

Missing documentation when re-exporting enumeration variants #35488

IvanUkhov opened this issue Aug 8, 2016 · 0 comments
Labels
T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@IvanUkhov
Copy link
Contributor

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

@Mark-Simulacrum Mark-Simulacrum added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label May 10, 2017
@steveklabnik steveklabnik added the T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. label May 18, 2017
bors added a commit that referenced this issue Jun 13, 2017
…eavus

rustdoc: Fix missing enum variant reexports

Fixes #35488
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants