We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a091fd2 commit 1531c95Copy full SHA for 1531c95
src/librustdoc/passes/collect_intra_doc_links.rs
@@ -1419,6 +1419,7 @@ impl Disambiguator {
1419
if let Some(idx) = link.find('@') {
1420
let (prefix, rest) = link.split_at(idx);
1421
let d = match prefix {
1422
+ // If you update this list, please also update the relevant rustdoc book section!
1423
"struct" => Kind(DefKind::Struct),
1424
"enum" => Kind(DefKind::Enum),
1425
"trait" => Kind(DefKind::Trait),
@@ -1437,6 +1438,7 @@ impl Disambiguator {
1437
1438
Ok(Some((d, &rest[1..], &rest[1..])))
1439
} else {
1440
let suffixes = [
1441
1442
("!()", DefKind::Macro(MacroKind::Bang)),
1443
("!{}", DefKind::Macro(MacroKind::Bang)),
1444
("![]", DefKind::Macro(MacroKind::Bang)),
0 commit comments