Skip to content

Re-exported extern_types are not rendered by rustdoc #46098

Closed
@crumblingstatue

Description

@crumblingstatue
#![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.

Metadata

Metadata

Assignees

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