|
1 | 1 | error: arithmetic operation that can potentially result in unexpected side-effects |
2 | | - --> $DIR/arithmetic_side_effects.rs:80:5 |
| 2 | + --> $DIR/arithmetic_side_effects.rs:119:5 |
3 | 3 | | |
4 | 4 | LL | _n += 1; |
5 | 5 | | ^^^^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::arithmetic-side-effects` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: arithmetic operation that can potentially result in unexpected side-effects |
10 | | - --> $DIR/arithmetic_side_effects.rs:81:5 |
| 10 | + --> $DIR/arithmetic_side_effects.rs:120:5 |
11 | 11 | | |
12 | 12 | LL | _n -= 1; |
13 | 13 | | ^^^^^^^ |
14 | 14 |
|
15 | 15 | error: arithmetic operation that can potentially result in unexpected side-effects |
16 | | - --> $DIR/arithmetic_side_effects.rs:82:5 |
| 16 | + --> $DIR/arithmetic_side_effects.rs:121:5 |
17 | 17 | | |
18 | 18 | LL | _n /= 0; |
19 | 19 | | ^^^^^^^ |
20 | 20 |
|
21 | 21 | error: arithmetic operation that can potentially result in unexpected side-effects |
22 | | - --> $DIR/arithmetic_side_effects.rs:83:5 |
| 22 | + --> $DIR/arithmetic_side_effects.rs:122:5 |
23 | 23 | | |
24 | 24 | LL | _n %= 0; |
25 | 25 | | ^^^^^^^ |
26 | 26 |
|
27 | 27 | error: arithmetic operation that can potentially result in unexpected side-effects |
28 | | - --> $DIR/arithmetic_side_effects.rs:84:5 |
| 28 | + --> $DIR/arithmetic_side_effects.rs:123:5 |
29 | 29 | | |
30 | 30 | LL | _n *= 2; |
31 | 31 | | ^^^^^^^ |
32 | 32 |
|
33 | 33 | error: arithmetic operation that can potentially result in unexpected side-effects |
34 | | - --> $DIR/arithmetic_side_effects.rs:87:10 |
| 34 | + --> $DIR/arithmetic_side_effects.rs:126:10 |
35 | 35 | | |
36 | 36 | LL | _n = _n + 1; |
37 | 37 | | ^^^^^^ |
38 | 38 |
|
39 | 39 | error: arithmetic operation that can potentially result in unexpected side-effects |
40 | | - --> $DIR/arithmetic_side_effects.rs:88:10 |
| 40 | + --> $DIR/arithmetic_side_effects.rs:127:10 |
41 | 41 | | |
42 | 42 | LL | _n = 1 + _n; |
43 | 43 | | ^^^^^^ |
44 | 44 |
|
45 | 45 | error: arithmetic operation that can potentially result in unexpected side-effects |
46 | | - --> $DIR/arithmetic_side_effects.rs:89:10 |
| 46 | + --> $DIR/arithmetic_side_effects.rs:128:10 |
47 | 47 | | |
48 | 48 | LL | _n = _n - 1; |
49 | 49 | | ^^^^^^ |
50 | 50 |
|
51 | 51 | error: arithmetic operation that can potentially result in unexpected side-effects |
52 | | - --> $DIR/arithmetic_side_effects.rs:90:10 |
| 52 | + --> $DIR/arithmetic_side_effects.rs:129:10 |
53 | 53 | | |
54 | 54 | LL | _n = 1 - _n; |
55 | 55 | | ^^^^^^ |
56 | 56 |
|
57 | 57 | error: arithmetic operation that can potentially result in unexpected side-effects |
58 | | - --> $DIR/arithmetic_side_effects.rs:91:10 |
| 58 | + --> $DIR/arithmetic_side_effects.rs:130:10 |
59 | 59 | | |
60 | 60 | LL | _n = _n / 0; |
61 | 61 | | ^^^^^^ |
62 | 62 |
|
63 | 63 | error: arithmetic operation that can potentially result in unexpected side-effects |
64 | | - --> $DIR/arithmetic_side_effects.rs:92:10 |
| 64 | + --> $DIR/arithmetic_side_effects.rs:131:10 |
65 | 65 | | |
66 | 66 | LL | _n = _n % 0; |
67 | 67 | | ^^^^^^ |
68 | 68 |
|
69 | 69 | error: arithmetic operation that can potentially result in unexpected side-effects |
70 | | - --> $DIR/arithmetic_side_effects.rs:93:10 |
| 70 | + --> $DIR/arithmetic_side_effects.rs:132:10 |
71 | 71 | | |
72 | 72 | LL | _n = _n * 2; |
73 | 73 | | ^^^^^^ |
74 | 74 |
|
75 | 75 | error: arithmetic operation that can potentially result in unexpected side-effects |
76 | | - --> $DIR/arithmetic_side_effects.rs:94:10 |
| 76 | + --> $DIR/arithmetic_side_effects.rs:133:10 |
77 | 77 | | |
78 | 78 | LL | _n = 2 * _n; |
79 | 79 | | ^^^^^^ |
80 | 80 |
|
81 | | -error: aborting due to 13 previous errors |
| 81 | +error: arithmetic operation that can potentially result in unexpected side-effects |
| 82 | + --> $DIR/arithmetic_side_effects.rs:136:10 |
| 83 | + | |
| 84 | +LL | _n = -_n; |
| 85 | + | ^^^ |
| 86 | + |
| 87 | +error: aborting due to 14 previous errors |
82 | 88 |
|
0 commit comments