Skip to content

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

Closed
@chris-morgan

Description

@chris-morgan

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.

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