Intra-doc links with unexpected characters are ignored here:
|
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)
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)