-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Rustdoc handling of public re-export is broken #28537
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
Comments
@steveklabnik I would like to take this. |
Have at it! |
I think I'm looking at the same issue, but I want to give my analysis of it, cause the symptoms are a little different than described by @rkruppe. I made a library crate named Example 1
/// MyType is _my_ type
pub struct MyType; A normal looking page is generated for Example 2
mod foo {
/// MyType is _my_ type
pub struct MyType;
}
pub use self::foo::MyType; Same exact output as Example 1; the module Example 3
mod foo {
mod bar {
/// MyType is _my_ type
pub struct MyType;
}
pub use self::bar::MyType;
}
pub use self::foo::MyType;
If anyone thinks this is a separate issue, I can open one up. |
As you say, the way to trigger it is different: I described a re-export from a hidden, public module. You described a re-export from a private submodule of a private module. However, I hope that this is caused by the same piece of code and both can be fixed in one small patch. Let's just expand the scope of this issue. |
pub use
is broken
pub use
is broken
Hey @marti1125, have you made progress on this? I might try fixing it myself. |
@adambadawy you can try it! I don't have any progress =( |
@marti1125 👌 I'll have a look. Not sure I have the knowledge to fix it. |
…excrichton rustdoc: improve crate-local inlining fixes rust-lang#28537 r? @alexcrichton
rustdoc: improve crate-local inlining fixes #28537 r? @alexcrichton
Looking at nightly docs of
core::num
, the presentation ofParseFloatError
is confusing. It looks like this:It should be rendered like
ParseIntError
, for example. The fact that it's defined in a private submodule is irrelevant and should not leak to unsuspecting users. The type does have a page, which can be found with the search, and links from other pages (functions, traits) do work. It's just the landing page forcore::num
that sucks.FWIW, in
std::num
it is rendered normally (the source link is broken, but whatever).The text was updated successfully, but these errors were encountered: