Skip to content

rustdoc: Display crate:: as the name of the crate in intra-doc links #84731

Open
@camelid

Description

@camelid

This would solve the issue described in #84716 (comment) and wouldn't require using extern crate.

A link like [`crate::collections::HashMap`] in std would be rendered as std::collections::HashMap, and would continue to link to HashMap's docs.

I don't think there are any use cases where a library author would want crate:: to show up in their docs.

cc #84721
cc @jyn514 @joshtriplett

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-enhancementCategory: An issue proposing an enhancement or a PR with one.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