cast_possible_wrap
for convertion from u8
to isize
#9337
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
L-pedantic
Lint: Belongs in the pedantic lint group
Summary
The lint
cast_possible_wrap
is triggered by a conversion fromu8
toisize
.The displayed message is:
On 16/32/64-bits platforms, the message is wrong. An 8-bit unsigned value fits in a 16/32/64-bits signed register.
Reproducer
Version
Additional Labels
@rustbot label +I-false-positive +L-pedantic
The text was updated successfully, but these errors were encountered: