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
Thank you for the issue. This lint should already be possible, I want to create some example lints and this one might be a good and simple example. I'll implement it after the next release at the start of October.
Btw, you might want to take a look at clippy::arithmetic_side_effects which checks for all arithmetic operators that can cause a panic
Lint explanation
Unsigned subtraction is likely to introduce underflow bugs. These bugs won't be caught in release mode.
Example code
Lint should disallow following code
while allowing both
and
The text was updated successfully, but these errors were encountered: