Skip to content

rustdoc doesn't handle renames in reexports correctly #34473

Closed
@Boddlnagg

Description

@Boddlnagg

Running rustdoc on the following code results in a documentation that mentions SomeTypeWithLongName instead of SomeType.

mod second {
    pub struct SomeTypeWithLongName;
}

pub use second::{SomeTypeWithLongName as SomeType};

I tested this on current nightly (rustc 1.11.0-nightly (ad7fe6521 2016-06-23)) and 1.9.0 stable.

(I've seen that there are a couple of issues with reexports in rustdoc already reported, but I haven't found this one.)

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