diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-03-25 18:09:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-25 18:09:06 +0100 |
| commit | 946192b25a7e3d766c32af1ce8b83edc3904f514 (patch) | |
| tree | 890ba2b6404ccf88892951d52a79f5efab5c74cf /compiler/rustc_codegen_llvm/src/lib.rs | |
| parent | 91b98d6511fa9e7e8cb25af8e0dd37df78533500 (diff) | |
| parent | 856a181570371e1622bcb42ef94fc23090f93a12 (diff) | |
| download | rust-946192b25a7e3d766c32af1ce8b83edc3904f514.tar.gz rust-946192b25a7e3d766c32af1ce8b83edc3904f514.zip | |
Rollup merge of #138886 - samueltardieu:push-xxkzmupznoky, r=jieyouxu
Fix autofix for `self` and `self as …` in `unused_imports` lint
This fixes two problems with the autofixes for the `unused_imports` lint:
- `use std::collections::{HashMap, self as coll};` would suggest, when `HashMap` is unused, the incorrect `use std::collections::self as coll;` which does not compile.
- `use std::borrow::{self, Cow};` would suggest, when `self` is unused, `use std::borrow::{Cow};`, which contains unnecessary brackets.
The first problem was reported in rust-lang/rust-clippy#14450, the second found while fixing the first one.
Fix #133750
(thanks to `@richardsamuels` for spotting the duplicate)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
