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 creates bad links on pub use of enum variants #12289

Closed
chris-morgan opened this issue Feb 15, 2014 · 0 comments
Closed

rustdoc creates bad links on pub use of enum variants #12289

chris-morgan opened this issue Feb 15, 2014 · 0 comments
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@chris-morgan
Copy link
Member

The std prelude contains pub use option::{Option, Some, None}.

rustdoc turns the prelude into http://static.rust-lang.org/doc/master/std/prelude/index.html. In the process, it makes a mess of pub use'd enum variants such as Some and None, turning them into bad links like http://static.rust-lang.org/doc/master/std/option/Option/variant.Some.html. You see, rustdoc doesn't produce pages for enum variants—it only produces pages for the containing enum. The Enum/variant.Variant.html needs to be changed to enum.Enum.html. No need for a hash.

bors added a commit to rust-lang-ci/rust that referenced this issue Jul 25, 2022
fix: Fix incorrect config key in client config update

Closes rust-lang/rust-analyzer#12288
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

2 participants