Clippy fix doesn't add required parentheses to cast #9391
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
Hi team!
Clippy fix fails to add parentheses around an existing cast when the newer code requires it, resulting in an error and subsequent rollback. It's similar to #9380, but kind of the opposite. 😄
Reproducer
I tried this code with
cargo clippy --fix
:I expected to see this happen:
Instead, this happened:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: