Skip to content

rustdoc: intradoc links to std don't behave as expected #85106

@Skirmisher

Description

@Skirmisher

Currently, rustdoc links to types in std that come from core or alloc resolve to the latter two crates. (They also link to nightly docs even on stable versions, but that's orthogonal.) This behavior is debatably appropriate for crates using std, but it's not a big deal.

However, explicit intradoc links (e.g. [std::vec::Vec]) also exhibit this behavior, which as a documentation writer I find confusing: if a path resolves to a different crate than the one I specified, I'm surprised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions