-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: The lint should have been triggered on code, but wasn't
Description
Summary
I expected an clippy error when using a specific type, which resolves to be an integer (u128).
Reproducer
I tried this code:
pub type SpecificIntegerType = u128;
pub const NewValue: SpecificIntegerType = 42;
...
let test_arithmetic_integer_error = NewValue + NewValue;When running with -Dclippy::integer_arithmetic
I expected to see this happen:
error: integer arithmetic detected
Instead, this happened:
No error.
Version
rustc 1.62.0-nightly
Additional Labels
No response
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: The lint should have been triggered on code, but wasn't