rust/compiler/rustc_resolve
Matthias Krüger 5c764da9b0
Rollup merge of #104315 - SparkyPotato:fix-104276, r=cjgillot
Improve spans with `use crate::{self}`

Fixes #104276.

The error becomes:
```
error: crate root imports need to be explicitly named: `use crate as name;`
 --> src/lib.rs.rs:1:13
  |
1 | use crate::{self};
  |             ^^^^

warning: unused import: `self`
 --> src/lib.rs:1:13
  |
1 | use crate::{self};
  |             ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default
```
2022-11-13 17:37:37 +01:00
..
src Rollup merge of #104315 - SparkyPotato:fix-104276, r=cjgillot 2022-11-13 17:37:37 +01:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00