default_numeric_fallback triggers on enums with an explicit repr #9656
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
default_numeric_fallback
triggers on enums with a specifiedrepr(...)
. The values are already checked by the compiler against the specified representation type and can't fallback into another type.Might be similar to #9632, but I'm guessing will require a separate fix.
Lint Name
default_numeric_fallback
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
(no warning)
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: