about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-08-21 16:37:31 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-09-05 13:48:19 -0400
commit418f6089e93d7f784643d55e6782055c9bb479d5 (patch)
treef0dde355e2fba31cf78ac9c10a0f8d726d28d567 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent6875220e1abea26c67885833c27365854cd7f73c (diff)
downloadrust-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