diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-08-28 01:31:33 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-09-05 13:56:57 -0400 |
| commit | efdc3facdfe931108146587b2f9d22b7dfd217c5 (patch) | |
| tree | a54e0fbd163b40a8188b336746030ba8c95dbcf8 /src/test | |
| parent | ee683ef8532034a4bee01e9aa8fd92dbe38ac6f1 (diff) | |
| download | rust-efdc3facdfe931108146587b2f9d22b7dfd217c5.tar.gz rust-efdc3facdfe931108146587b2f9d22b7dfd217c5.zip | |
Give a much better error message when an item has a macro disambiguator
Previously, this called `check_full_res` for values and types, but not macros. This would result in not showing when there was a partial resolution for a parent of the item. This now calls `check_full_res`. Additionally, it checks if there was a disambiguator, and if so, says that specific kind wasn't found instead of saying generically 'associated item'.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc-ui/intra-link-errors.rs | 2 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/intra-link-errors.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rustdoc-ui/intra-link-errors.rs b/src/test/rustdoc-ui/intra-link-errors.rs index 919c46fe1da..ae89f418984 100644 --- a/src/test/rustdoc-ui/intra-link-errors.rs +++ b/src/test/rustdoc-ui/intra-link-errors.rs @@ -65,7 +65,7 @@ impl S { /// [T::h!] //~^ ERROR unresolved link -//~| NOTE no item named `T::h` +//~| NOTE `T` has no macro named `h` pub trait T { fn g() {} } diff --git a/src/test/rustdoc-ui/intra-link-errors.stderr b/src/test/rustdoc-ui/intra-link-errors.stderr index 7318193964f..68941d64c7a 100644 --- a/src/test/rustdoc-ui/intra-link-errors.stderr +++ b/src/test/rustdoc-ui/intra-link-errors.stderr @@ -97,7 +97,7 @@ error: unresolved link to `T::h` LL | /// [T::h!] | ^^^^^ | - = note: no item named `T::h` is in scope + = note: the trait `T` has no macro named `h` error: unresolved link to `S::h` --> $DIR/intra-link-errors.rs:54:6 |
