|
1 | 1 | error: arithmetic detected |
2 | | - --> $DIR/arithmetic_side_effects.rs:50:21 |
| 2 | + --> $DIR/arithmetic_side_effects.rs:58:21 |
3 | 3 | | |
4 | 4 | LL | let mut _a = 1; _a += 1; |
5 | 5 | | ^^^^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::arithmetic-side-effects` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: arithmetic detected |
10 | | - --> $DIR/arithmetic_side_effects.rs:52:26 |
| 10 | + --> $DIR/arithmetic_side_effects.rs:60:26 |
11 | 11 | | |
12 | 12 | LL | let mut _b = 1; _b = _b + 1; |
13 | 13 | | ^^^^^^ |
14 | 14 |
|
15 | 15 | error: arithmetic detected |
16 | | - --> $DIR/arithmetic_side_effects.rs:54:26 |
| 16 | + --> $DIR/arithmetic_side_effects.rs:62:26 |
17 | 17 | | |
18 | 18 | LL | let mut _c = 1; _c = 1 + _c; |
19 | 19 | | ^^^^^^ |
20 | 20 |
|
21 | | -error: aborting due to 3 previous errors |
| 21 | +error: arithmetic detected |
| 22 | + --> $DIR/arithmetic_side_effects.rs:65:5 |
| 23 | + | |
| 24 | +LL | _a += 1; |
| 25 | + | ^^^^^^^ |
| 26 | + |
| 27 | +error: arithmetic detected |
| 28 | + --> $DIR/arithmetic_side_effects.rs:66:5 |
| 29 | + | |
| 30 | +LL | _a -= 1; |
| 31 | + | ^^^^^^^ |
| 32 | + |
| 33 | +error: arithmetic detected |
| 34 | + --> $DIR/arithmetic_side_effects.rs:67:5 |
| 35 | + | |
| 36 | +LL | _a /= 0; |
| 37 | + | ^^^^^^^ |
| 38 | + |
| 39 | +error: arithmetic detected |
| 40 | + --> $DIR/arithmetic_side_effects.rs:68:5 |
| 41 | + | |
| 42 | +LL | _a %= 0; |
| 43 | + | ^^^^^^^ |
| 44 | + |
| 45 | +error: arithmetic detected |
| 46 | + --> $DIR/arithmetic_side_effects.rs:69:5 |
| 47 | + | |
| 48 | +LL | _a *= 2; |
| 49 | + | ^^^^^^^ |
| 50 | + |
| 51 | +error: arithmetic detected |
| 52 | + --> $DIR/arithmetic_side_effects.rs:70:5 |
| 53 | + | |
| 54 | +LL | _a *= 3; |
| 55 | + | ^^^^^^^ |
| 56 | + |
| 57 | +error: aborting due to 9 previous errors |
22 | 58 |
|
0 commit comments