File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/doc/rustdoc/src/write-documentation Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ macro_rules! foo {
103
103
}
104
104
```
105
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
+
106
113
## Warnings, re-exports, and scoping
107
114
108
115
Links are resolved in the scope of the module where the item is defined, even
You can’t perform that action at this time.
0 commit comments