2019-12-26 06:34:55 -06:00
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:8:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | a % b;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::modulo-arithmetic` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::modulo_arithmetic)]`
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:11:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | b % a;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:14:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | b %= a;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:20:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | a_i8 % b_i8;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:23:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | b_i8 %= a_i8;
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:29:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | a_i16 % b_i16;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:32:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | b_i16 %= a_i16;
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:38:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | a_i32 % b_i32;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:41:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | b_i32 %= a_i32;
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:47:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | a_i64 % b_i64;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:50:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | b_i64 %= a_i64;
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:56:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | a_i128 % b_i128;
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:59:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | b_i128 %= a_i128;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:65:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | a_isize % b_isize;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:68:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | b_isize %= a_isize;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:74:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | a % b;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/modulo_arithmetic_integral.rs:77:5
|
2019-12-26 06:34:55 -06:00
|
|
|
|
|
|
|
|
LL | b %= a;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: aborting due to 17 previous errors
|
|
|
|
|