cast_abs_to_unsigned
#8873
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
Summary
The lint
cast_abs_to_unsigned
is showing a warning even when the variable is cast tousize
. The recommended code change does not produce working code and in the end leads to a more convoluted solution. Maybe the lint should not be triggered by code that is casting tousize
.Lint Name
cast_abs_to_unsigned
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: I suppose the lint does not apply to such a line of code.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: