rust/compiler/rustc_resolve/src
Mara Bos c31e02a24c
Rollup merge of #88232 - m-ou-se:macro-name-imported-but-not-macro, r=estebank
Add notes to macro-not-found diagnostics to point out how things with the same name were not a match.

This adds notes like:
```
error: cannot find derive macro `Serialize` in this scope
  --> $DIR/issue-88206.rs:22:10
   |
LL | #[derive(Serialize)]
   |          ^^^^^^^^^
   |
note: `Serialize` is imported here, but it is not a derive macro
  --> $DIR/issue-88206.rs:17:11
   |
LL | use hey::{Serialize, Deserialize};
   |           ^^^^^^^^^
```

Fixes https://github.com/rust-lang/rust/issues/88206

Includes https://github.com/rust-lang/rust/pull/88229

r? `@estebank`
2021-08-23 20:45:50 +02:00
..
late Fix more “a”/“an” typos 2021-08-22 16:35:29 +02:00
build_reduced_graph.rs Use LocalExpnId where possible. 2021-07-17 19:41:02 +02:00
check_unused.rs Stop tracking namespce in used_imports. 2021-08-22 16:50:59 +02:00
def_collector.rs Use LocalExpnId where possible. 2021-07-17 19:41:02 +02:00
diagnostics.rs Improve wording of macro-not-found-but-name-exists note. 2021-08-23 16:57:59 +02:00
imports.rs Stop tracking namespce in used_imports. 2021-08-22 16:50:59 +02:00
late.rs Stop tracking namespce in used_imports. 2021-08-22 16:50:59 +02:00
lib.rs Rollup merge of #88230 - steffahn:a_an, r=oli-obk 2021-08-23 20:45:49 +02:00
macros.rs Look for macro names in all namespaces for diagnostics. 2021-08-23 16:43:54 +02:00