rustdoc: Display crate::
as the name of the crate in intra-doc links
#84731
Labels
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
This would solve the issue described in #84716 (comment) and wouldn't require using
extern crate
.A link like
[`crate::collections::HashMap`]
instd
would be rendered asstd::collections::HashMap
, and would continue to link toHashMap
'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
The text was updated successfully, but these errors were encountered: