False positive in cast_sign_loss #2728
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I have some code like this in serde_yaml:
It would be nice to suppress cast_sign_loss in cases where Clippy can determine that the value is nonnegative, for example
i64::MAX
andi64::max_value()
.The text was updated successfully, but these errors were encountered: