diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-03-24 11:53:09 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-03-24 13:01:47 +0100 |
| commit | 856a181570371e1622bcb42ef94fc23090f93a12 (patch) | |
| tree | dd89c52321bd17145cc5c89fe8ec0ca07114b2cb /compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs | |
| parent | ae8ab87de4d8caab5d91a027bc19bb5d5e8a3691 (diff) | |
| download | rust-856a181570371e1622bcb42ef94fc23090f93a12.tar.gz rust-856a181570371e1622bcb42ef94fc23090f93a12.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/archive_ro.rs')
0 files changed, 0 insertions, 0 deletions
