Skip to content

Rustdoc get confused by multiple level of re-exporting. #29319

@Luthaf

Description

@Luthaf

Using the following code,

mod foo {
    mod bar {
        /// the Baz struct
        pub struct Baz;
    }
    pub use self::bar::Baz;
}

pub use foo::*;

rustdoc produce this output:

capture d ecran de 2015-10-26 11 40 08

With no link to Baz, and the link to bar leading to a blank page.

Changing pub use foo::*; to pub use foo::Baz; still produce a wrong ouptut:

capture d ecran de 2015-10-26 11 49 26

Meta:

$ rustdoc --version
rustdoc 1.3.0 (9a92aaf19 2015-09-15)
$ rustc --version 
rustc 1.3.0 (9a92aaf19 2015-09-15)

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