-
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
intra-doc links: Links with unexpected characters are silently ignored #77199
Copy link
Copy link
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
Activity
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.
Intra-doc links with unexpected characters are ignored here:
rust/src/librustdoc/passes/collect_intra_doc_links.rs
Lines 931 to 933 in 78a0894
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)