about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-03-24 11:53:09 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-03-24 13:01:47 +0100
commit856a181570371e1622bcb42ef94fc23090f93a12 (patch)
treedd89c52321bd17145cc5c89fe8ec0ca07114b2cb /compiler/rustc_codegen_llvm/src
parentae8ab87de4d8caab5d91a027bc19bb5d5e8a3691 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions