|
1 | 1 | error: the operation is ineffective. Consider reducing it to `x` |
2 | | - --> $DIR/identity_op.rs:16:5 |
| 2 | + --> $DIR/identity_op.rs:26:5 |
3 | 3 | | |
4 | 4 | LL | x + 0; |
5 | 5 | | ^^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::identity-op` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: the operation is ineffective. Consider reducing it to `x` |
10 | | - --> $DIR/identity_op.rs:17:5 |
| 10 | + --> $DIR/identity_op.rs:27:5 |
11 | 11 | | |
12 | 12 | LL | x + (1 - 1); |
13 | 13 | | ^^^^^^^^^^^ |
14 | 14 |
|
15 | 15 | error: the operation is ineffective. Consider reducing it to `x` |
16 | | - --> $DIR/identity_op.rs:19:5 |
| 16 | + --> $DIR/identity_op.rs:29:5 |
17 | 17 | | |
18 | 18 | LL | 0 + x; |
19 | 19 | | ^^^^^ |
20 | 20 |
|
21 | 21 | error: the operation is ineffective. Consider reducing it to `x` |
22 | | - --> $DIR/identity_op.rs:22:5 |
| 22 | + --> $DIR/identity_op.rs:32:5 |
23 | 23 | | |
24 | 24 | LL | x | (0); |
25 | 25 | | ^^^^^^^ |
26 | 26 |
|
27 | 27 | error: the operation is ineffective. Consider reducing it to `x` |
28 | | - --> $DIR/identity_op.rs:25:5 |
| 28 | + --> $DIR/identity_op.rs:35:5 |
29 | 29 | | |
30 | 30 | LL | x * 1; |
31 | 31 | | ^^^^^ |
32 | 32 |
|
33 | 33 | error: the operation is ineffective. Consider reducing it to `x` |
34 | | - --> $DIR/identity_op.rs:26:5 |
| 34 | + --> $DIR/identity_op.rs:36:5 |
35 | 35 | | |
36 | 36 | LL | 1 * x; |
37 | 37 | | ^^^^^ |
38 | 38 |
|
39 | 39 | error: the operation is ineffective. Consider reducing it to `x` |
40 | | - --> $DIR/identity_op.rs:32:5 |
| 40 | + --> $DIR/identity_op.rs:42:5 |
41 | 41 | | |
42 | 42 | LL | -1 & x; |
43 | 43 | | ^^^^^^ |
44 | 44 |
|
45 | 45 | error: the operation is ineffective. Consider reducing it to `u` |
46 | | - --> $DIR/identity_op.rs:35:5 |
| 46 | + --> $DIR/identity_op.rs:45:5 |
47 | 47 | | |
48 | 48 | LL | u & 255; |
49 | 49 | | ^^^^^^^ |
50 | 50 |
|
51 | 51 | error: the operation is ineffective. Consider reducing it to `42` |
52 | | - --> $DIR/identity_op.rs:38:5 |
| 52 | + --> $DIR/identity_op.rs:48:5 |
53 | 53 | | |
54 | 54 | LL | 42 << 0; |
55 | 55 | | ^^^^^^^ |
56 | 56 |
|
57 | 57 | error: the operation is ineffective. Consider reducing it to `1` |
58 | | - --> $DIR/identity_op.rs:39:5 |
| 58 | + --> $DIR/identity_op.rs:49:5 |
59 | 59 | | |
60 | 60 | LL | 1 >> 0; |
61 | 61 | | ^^^^^^ |
62 | 62 |
|
63 | 63 | error: the operation is ineffective. Consider reducing it to `42` |
64 | | - --> $DIR/identity_op.rs:40:5 |
| 64 | + --> $DIR/identity_op.rs:50:5 |
65 | 65 | | |
66 | 66 | LL | 42 >> 0; |
67 | 67 | | ^^^^^^^ |
68 | 68 |
|
69 | | -error: aborting due to 11 previous errors |
| 69 | +error: the operation is ineffective. Consider reducing it to `&x` |
| 70 | + --> $DIR/identity_op.rs:51:5 |
| 71 | + | |
| 72 | +LL | &x >> 0; |
| 73 | + | ^^^^^^^ |
| 74 | + |
| 75 | +error: aborting due to 12 previous errors |
70 | 76 |
|
0 commit comments