about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-13 17:37:37 +0100
committerGitHub <noreply@github.com>2022-11-13 17:37:37 +0100
commit5c764da9b05cd78d0b89d5b4f7b6b401fc773571 (patch)
tree1efd02c8512a81cbd42f67eb3fd491de3224aa32 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parenta1b0702ea5efd2f1bacc2bb5cfac7b82abc58bc5 (diff)
parentc7b28913151927e8fdda3878d0188ab02b767eae (diff)
downloadrust-5c764da9b05cd78d0b89d5b4f7b6b401fc773571.tar.gz
rust-5c764da9b05cd78d0b89d5b4f7b6b401fc773571.zip
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
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions