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

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

Closed
Luthaf opened this issue Oct 26, 2015 · 4 comments
Closed

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

Luthaf opened this issue Oct 26, 2015 · 4 comments
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Luthaf
Copy link

Luthaf commented Oct 26, 2015

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)
@steveklabnik steveklabnik added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Oct 26, 2015
@nagisa
Copy link
Member

nagisa commented Oct 26, 2015

cc #24305

@ghost
Copy link

ghost commented Oct 28, 2015

Works correctly on nightly:
image

@steveklabnik
Copy link
Member

@Luthaf could you try on nightly and confirm @eljay 's findings?

@Luthaf
Copy link
Author

Luthaf commented Oct 29, 2015

I confirm this is fixed on nightly!

@Luthaf Luthaf closed this as completed Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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