rust/src/librustdoc
Joshua Nelson 418f6089e9 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
```
2020-09-05 13:48:19 -04:00
..
clean Rollup merge of #76078 - jyn514:no-disambiguator, r=manishearth 2020-09-05 16:28:26 +02:00
doctest Rename rustdoc/test -> rustdoc/doctest 2020-08-27 18:21:25 +02:00
formats rustdoc: do not use plain summary for trait impls 2020-08-30 12:02:18 -04:00
html Rollup merge of #76078 - jyn514:no-disambiguator, r=manishearth 2020-09-05 16:28:26 +02:00
json Update driver to add json backend 2020-07-30 14:13:51 -05:00
passes Give a better error message when linking to a macro with the wrong disambiguator 2020-09-05 13:48:19 -04:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml Update expect-test to 1.0 2020-08-31 21:04:09 +02:00
config.rs Fix strings indent 2020-08-31 13:16:50 +02:00
core.rs Fix strings indent 2020-08-31 13:16:50 +02:00
docfs.rs fix clippy::unit_arg: make it explicit that Ok(()) is being returned 2020-08-07 22:47:32 +02:00
doctest.rs Rename rustdoc/test -> rustdoc/doctest 2020-08-27 18:21:25 +02:00
doctree.rs rust_ast::ast => rustc_ast 2020-08-17 20:32:32 +00:00
error.rs Move Error and RenderInfo out of html module 2020-07-27 16:00:38 -05:00
externalfiles.rs rustdoc: Rename internal API fns to into_string 2020-07-15 10:55:40 +00:00
fold.rs rustdoc: Fix intra-doc links for cross-crate re-exports of traits 2020-08-29 17:21:26 -04:00
lib.rs Fix strings indent 2020-08-31 13:16:50 +02:00
markdown.rs Rename rustdoc/test -> rustdoc/doctest 2020-08-27 18:21:25 +02:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
theme.rs Expand and remove try_something macro. 2020-04-02 19:55:56 +02:00
visit_ast.rs rust_ast::ast => rustc_ast 2020-08-17 20:32:32 +00:00
visit_lib.rs rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00

For more information about how librustdoc works, see the rustc dev guide.