diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-08-21 16:37:31 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-09-05 13:48:19 -0400 |
| commit | 418f6089e93d7f784643d55e6782055c9bb479d5 (patch) | |
| tree | f0dde355e2fba31cf78ac9c10a0f8d726d28d567 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 6875220e1abea26c67885833c27365854cd7f73c (diff) | |
| download | rust-418f6089e93d7f784643d55e6782055c9bb479d5.tar.gz rust-418f6089e93d7f784643d55e6782055c9bb479d5.zip | |
Give a better error message when linking to a macro with the wrong disambiguator
Before: ``` warning: unresolved link to `m` --> m.rs:1:6 | 1 | /// [value@m] | ^^^^^^^ | = note: `#[warn(broken_intra_doc_links)]` on by default = note: no item named `m` is in scope = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` ``` After: ``` warning: unresolved link to `m` --> m.rs:1:6 | 1 | /// [value@m] | ^^^^^^^ help: to link to the macro, use its disambiguator: `m!` | = note: `#[warn(broken_intra_doc_links)]` on by default = note: this link resolves to the macro `m`, which is not in the value namespace ```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
