You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was intentionally changed in rust-lang/rust#120470. The lint unused_variables no longer has a machine-applicable suggestion so rustfix won't try to automatically apply this particular warning.
Other suggestions that are marked as machine-applicable should still work, e.g. useless_vec: vec![1].first() should get autofixed to [1].first()
Summary
The command
cargo clippy --fix --allow-dirty
is not working as expected with 1.80.1.Reproducer
I tried this code on a fresh project:
I expected the file to modify like this when I run
cargo clippy --fix --allow-dirty
:Instead the file was still this:
Infact, I confirmed that this was not the behavior in 1.76.0 and everything was working as expected there.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: