-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameI-needs-decisionIssue: In need of a decision.Issue: In need of a decision.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Intra-doc links with unexpected characters are ignored here:
rust/src/librustdoc/passes/collect_intra_doc_links.rs
Lines 931 to 933 in 78a0894
if path_str.contains(|ch: char| !(ch.is_alphanumeric() || ch == ':' || ch == '_')) { | |
return; | |
} |
However, it would be better if they caused a warning with --display-doctest-warnings
. Developers might expect [`&[String]`]
to link to the slice primitive, but that link would be ignored without a warning.
cc @jyn514
cc #76106 (comment)
Metadata
Metadata
Assignees
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameI-needs-decisionIssue: In need of a decision.Issue: In need of a decision.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.