cargo fix
produces incorrect code when removing last unused dependency next to self as __
syntax
#133750
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
L-dead_code
Lint: dead_code
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I encountered incorrect code being produced by
cargo fix
command.Code
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=205e34f726214436ef250b91b4d025f2
Meta
stable
rustc --version --verbose
:nightly
rustc --version --verbose
:Error output
Backtrace
No backtrace
The text was updated successfully, but these errors were encountered: