2020-03-18 14:41:42 +00:00
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:14:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | 1 + i;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::integer-arithmetic` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:15:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | i * 2;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:16:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | / 1 %
|
|
|
|
LL | | i / 2; // no error, this is part of the expression in the preceding line
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:18:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | i - 2 + 2 - i;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:19:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | -i;
|
|
|
|
| ^^
|
|
|
|
|
2020-04-13 03:11:19 +00:00
|
|
|
error: integer arithmetic detected
|
|
|
|
--> $DIR/integer_arithmetic.rs:20:5
|
|
|
|
|
|
|
|
|
LL | i >> 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
|
|
|
--> $DIR/integer_arithmetic.rs:21:5
|
|
|
|
|
|
|
|
|
LL | i << 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
2020-03-18 14:41:42 +00:00
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:31:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | i += 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:32:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | i -= 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:33:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | i *= 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:34:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | i /= 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-03 01:46:01 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:35:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | i %= 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-13 03:11:19 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:36:5
|
|
|
|
|
|
|
|
|
LL | i <<= 3;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
|
|
|
--> $DIR/integer_arithmetic.rs:37:5
|
|
|
|
|
|
|
|
|
LL | i >>= 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
|
|
|
--> $DIR/integer_arithmetic.rs:79:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | 3 + &1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-13 03:11:19 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:80:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | &3 + 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-13 03:11:19 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:81:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | &3 + &1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-13 03:11:19 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:86:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | a + x
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-13 03:11:19 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:90:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | x + y
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-13 03:11:19 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:94:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | x + y
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: integer arithmetic detected
|
2020-04-13 03:11:19 +00:00
|
|
|
--> $DIR/integer_arithmetic.rs:98:5
|
2020-03-18 14:41:42 +00:00
|
|
|
|
|
|
|
|
LL | (&x + &y)
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2020-04-13 03:11:19 +00:00
|
|
|
error: aborting due to 21 previous errors
|
2020-03-18 14:41:42 +00:00
|
|
|
|