-
Notifications
You must be signed in to change notification settings - Fork 13k
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 has broken links for enum imports #29814
Comments
The problem is that the code formatting the path assumes that all path-segments except the last one are modules, emitting |
The deeper problem is that rustc ( I'm not sure how this ought to be solved:
|
In theory when rustdoc runs we have the entire results of resolve, right? Along those lines I figured the resolution would be somewhere... |
I don't think I can reproduce this today, but since there's not really a minimal example here it's hard to tell. The code below generates a valid link for pub mod foo {
pub enum Bar {
A,
B,
C,
}
}
pub use foo::Bar::A as Apple;
pub fn main() {} |
http://manishearth.github.io/rust-internals-docs/rustc/middle/ty/
If you click on the
BuiltinBound
in pub useself::sty::BuiltinBound::Send as BoundSend;
, you're taken to http://manishearth.github.io/rust-internals-docs/rustc/middle/ty/sty/BuiltinBound/index.html instead of http://manishearth.github.io/rust-internals-docs/rustc/middle/ty/enum.BuiltinBound.html.Also the
sty
link is broken, probably due to privacy.The text was updated successfully, but these errors were encountered: