Skip to content

rustdoc: Structured suggestion for intra-doc links based on current crate name #84721

Open
@joshtriplett

Description

@joshtriplett

Within a crate xyz, the link [`xyz::path::some_item`] gives an error. This would be challenging to fix in the rustdoc resolver. However, we could provide a rustfix-applicable structured suggestion on the error, suggesting [`xyz::path::some_item`][`crate::path::some_item`].

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`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