We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b76821b commit d38fd29Copy full SHA for d38fd29
src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md
@@ -103,6 +103,13 @@ macro_rules! foo {
103
}
104
```
105
106
+There is one case where the disambiguation will be performed automatically: if an intra doc
107
+link is resolved at the same time as a trait and as a derive proc-macro. In this case, it'll
108
+always generate a link to the trait and not emit a "missing disambiguation" warning. A good
109
+example of this case is when you link to the `Clone` trait: there is also a `Clone`
110
+proc-macro but it ignores it in this case. If you want to link to the proc-macro, you can
111
+use the `macro@` disambiguator.
112
+
113
## Warnings, re-exports, and scoping
114
115
Links are resolved in the scope of the module where the item is defined, even
0 commit comments