]> git.lizzy.rs Git - rust.git/blob - tests/ui/identity_op.stderr
Auto merge of #8596 - Jaic1:unnecessary_cast, r=flip1995
[rust.git] / tests / ui / identity_op.stderr
1 error: the operation is ineffective. Consider reducing it to `x`
2   --> $DIR/identity_op.rs:37:5
3    |
4 LL |     x + 0;
5    |     ^^^^^
6    |
7    = note: `-D clippy::identity-op` implied by `-D warnings`
8
9 error: the operation is ineffective. Consider reducing it to `x`
10   --> $DIR/identity_op.rs:38:5
11    |
12 LL |     x + (1 - 1);
13    |     ^^^^^^^^^^^
14
15 error: the operation is ineffective. Consider reducing it to `x`
16   --> $DIR/identity_op.rs:40:5
17    |
18 LL |     0 + x;
19    |     ^^^^^
20
21 error: the operation is ineffective. Consider reducing it to `x`
22   --> $DIR/identity_op.rs:43:5
23    |
24 LL |     x | (0);
25    |     ^^^^^^^
26
27 error: the operation is ineffective. Consider reducing it to `x`
28   --> $DIR/identity_op.rs:46:5
29    |
30 LL |     x * 1;
31    |     ^^^^^
32
33 error: the operation is ineffective. Consider reducing it to `x`
34   --> $DIR/identity_op.rs:47:5
35    |
36 LL |     1 * x;
37    |     ^^^^^
38
39 error: the operation is ineffective. Consider reducing it to `x`
40   --> $DIR/identity_op.rs:53:5
41    |
42 LL |     -1 & x;
43    |     ^^^^^^
44
45 error: the operation is ineffective. Consider reducing it to `u`
46   --> $DIR/identity_op.rs:56:5
47    |
48 LL |     u & 255;
49    |     ^^^^^^^
50
51 error: the operation is ineffective. Consider reducing it to `42`
52   --> $DIR/identity_op.rs:59:5
53    |
54 LL |     42 << 0;
55    |     ^^^^^^^
56
57 error: the operation is ineffective. Consider reducing it to `1`
58   --> $DIR/identity_op.rs:60:5
59    |
60 LL |     1 >> 0;
61    |     ^^^^^^
62
63 error: the operation is ineffective. Consider reducing it to `42`
64   --> $DIR/identity_op.rs:61:5
65    |
66 LL |     42 >> 0;
67    |     ^^^^^^^
68
69 error: the operation is ineffective. Consider reducing it to `&x`
70   --> $DIR/identity_op.rs:62:5
71    |
72 LL |     &x >> 0;
73    |     ^^^^^^^
74
75 error: the operation is ineffective. Consider reducing it to `x`
76   --> $DIR/identity_op.rs:63:5
77    |
78 LL |     x >> &0;
79    |     ^^^^^^^
80
81 error: the operation is ineffective. Consider reducing it to `2`
82   --> $DIR/identity_op.rs:70:5
83    |
84 LL |     2 % 3;
85    |     ^^^^^
86
87 error: the operation is ineffective. Consider reducing it to `-2`
88   --> $DIR/identity_op.rs:71:5
89    |
90 LL |     -2 % 3;
91    |     ^^^^^^
92
93 error: the operation is ineffective. Consider reducing it to `2`
94   --> $DIR/identity_op.rs:72:5
95    |
96 LL |     2 % -3 + x;
97    |     ^^^^^^
98
99 error: the operation is ineffective. Consider reducing it to `-2`
100   --> $DIR/identity_op.rs:73:5
101    |
102 LL |     -2 % -3 + x;
103    |     ^^^^^^^
104
105 error: the operation is ineffective. Consider reducing it to `1`
106   --> $DIR/identity_op.rs:74:9
107    |
108 LL |     x + 1 % 3;
109    |         ^^^^^
110
111 error: aborting due to 18 previous errors
112