cargo clippy --fix
for clippy::manual_retain results in broken code
#13852
Labels
C-bug
Category: Clippy is not doing the correct thing
Summary
Running
cargo clippy --fix
in this example project results broken code:Reproducer
I tried this code in main.rs:
I expected to see this happen:
cargo clippy --fix
does not break the codeInstead, this happened:
cargo clippy --fix
breaks the codeVersion
Additional Labels
No response
The text was updated successfully, but these errors were encountered: