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

Re-exported extern_types are not rendered by rustdoc #46098

Closed
crumblingstatue opened this issue Nov 19, 2017 · 1 comment
Closed

Re-exported extern_types are not rendered by rustdoc #46098

crumblingstatue opened this issue Nov 19, 2017 · 1 comment
Assignees
Labels
C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@crumblingstatue
Copy link
Contributor

crumblingstatue commented Nov 19, 2017

#![feature(extern_types)]

extern {
    /// A nice extern type.
    pub type Foo;
}

mod sub {
    extern {
        /// Another extern type. It's not available in the rendered documentaiton.
        pub type Bar;
    }
    /// A non-extern type. This is rendered correctly.
    pub struct NonExtern;
}

pub use sub::{Bar, NonExtern};

Rendered:

EDIT: Updated example with non-extern type for contrast.

@crumblingstatue
Copy link
Contributor Author

cc @kennytm

@kennytm kennytm added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Nov 19, 2017
@kennytm kennytm self-assigned this Nov 19, 2017
kennytm added a commit to kennytm/rust that referenced this issue Nov 20, 2017
Handles `pub use` of `extern { fn, static, type }`. Also plug in some more
`match` arms where handling `extern type` is reasonable.

Fixed rust-lang#46098.
bors added a commit that referenced this issue Nov 25, 2017
…, r=GuillaumeGomez

Properly handle reexport of foreign items.

Handles `pub use` of `extern { fn, static, type }`. Also plug in some more `match` arms where handling `extern type` is reasonable.

Fixed #46098.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. 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

2 participants