1 error: the operation is ineffective. Consider reducing it to `x`
2 --> $DIR/identity_op.rs:39:5
7 = note: `-D clippy::identity-op` implied by `-D warnings`
9 error: the operation is ineffective. Consider reducing it to `x`
10 --> $DIR/identity_op.rs:40:5
15 error: the operation is ineffective. Consider reducing it to `x`
16 --> $DIR/identity_op.rs:42:5
21 error: the operation is ineffective. Consider reducing it to `x`
22 --> $DIR/identity_op.rs:45:5
27 error: the operation is ineffective. Consider reducing it to `x`
28 --> $DIR/identity_op.rs:48:5
33 error: the operation is ineffective. Consider reducing it to `x`
34 --> $DIR/identity_op.rs:49:5
39 error: the operation is ineffective. Consider reducing it to `x`
40 --> $DIR/identity_op.rs:55:5
45 error: the operation is ineffective. Consider reducing it to `u`
46 --> $DIR/identity_op.rs:58:5
51 error: the operation is ineffective. Consider reducing it to `42`
52 --> $DIR/identity_op.rs:61:5
57 error: the operation is ineffective. Consider reducing it to `1`
58 --> $DIR/identity_op.rs:62:5
63 error: the operation is ineffective. Consider reducing it to `42`
64 --> $DIR/identity_op.rs:63:5
69 error: the operation is ineffective. Consider reducing it to `&x`
70 --> $DIR/identity_op.rs:64:5
75 error: the operation is ineffective. Consider reducing it to `x`
76 --> $DIR/identity_op.rs:65:5
81 error: the operation is ineffective. Consider reducing it to `2`
82 --> $DIR/identity_op.rs:72:5
87 error: the operation is ineffective. Consider reducing it to `-2`
88 --> $DIR/identity_op.rs:73:5
93 error: the operation is ineffective. Consider reducing it to `2`
94 --> $DIR/identity_op.rs:74:5
99 error: the operation is ineffective. Consider reducing it to `-2`
100 --> $DIR/identity_op.rs:75:5
105 error: the operation is ineffective. Consider reducing it to `1`
106 --> $DIR/identity_op.rs:76:9
111 error: the operation is ineffective. Consider reducing it to `if b { 1 } else { 2 }`
112 --> $DIR/identity_op.rs:84:5
114 LL | 0 + if b { 1 } else { 2 };
115 | ^^^^^^^^^^^^^^^^^^^^^^^^^
117 error: the operation is ineffective. Consider reducing it to `match a { 0 => 10, _ => 20 }`
118 --> $DIR/identity_op.rs:86:5
120 LL | 0 + match a { 0 => 10, _ => 20 };
121 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
123 error: the operation is ineffective. Consider reducing it to `if b { 0 + 1 } else { 2 }`
124 --> $DIR/identity_op.rs:91:5
126 LL | 0 + if b { 0 + 1 } else { 2 };
127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
129 error: the operation is ineffective. Consider reducing it to `1`
130 --> $DIR/identity_op.rs:91:16
132 LL | 0 + if b { 0 + 1 } else { 2 };
135 error: the operation is ineffective. Consider reducing it to `match a { 0 => 0 + 10, _ => 20 }`
136 --> $DIR/identity_op.rs:92:5
138 LL | 0 + match a { 0 => 0 + 10, _ => 20 };
139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
141 error: the operation is ineffective. Consider reducing it to `10`
142 --> $DIR/identity_op.rs:92:25
144 LL | 0 + match a { 0 => 0 + 10, _ => 20 };
147 error: the operation is ineffective. Consider reducing it to `1`
148 --> $DIR/identity_op.rs:93:16
150 LL | 0 + if b { 0 + 1 } else { 2 } + match a { 0 => 0 + 30, _ => 40 };
153 error: the operation is ineffective. Consider reducing it to `30`
154 --> $DIR/identity_op.rs:93:52
156 LL | 0 + if b { 0 + 1 } else { 2 } + match a { 0 => 0 + 30, _ => 40 };
159 error: the operation is ineffective. Consider reducing it to `1`
160 --> $DIR/identity_op.rs:95:20
162 LL | let _ = 0 + if 0 + 1 > 0 { 1 } else { 2 } + if 0 + 1 > 0 { 3 } else { 4 };
165 error: the operation is ineffective. Consider reducing it to `1`
166 --> $DIR/identity_op.rs:95:52
168 LL | let _ = 0 + if 0 + 1 > 0 { 1 } else { 2 } + if 0 + 1 > 0 { 3 } else { 4 };
171 error: the operation is ineffective. Consider reducing it to `1`
172 --> $DIR/identity_op.rs:96:23
174 LL | let _ = 0 + match 0 + 1 { 0 => 10, _ => 20 } + match 0 + 1 { 0 => 30, _ => 40 };
177 error: the operation is ineffective. Consider reducing it to `1`
178 --> $DIR/identity_op.rs:96:58
180 LL | let _ = 0 + match 0 + 1 { 0 => 10, _ => 20 } + match 0 + 1 { 0 => 30, _ => 40 };
183 error: the operation is ineffective. Consider reducing it to `0 + if b { 1 } else { 2 } + if b { 3 } else { 4 }`
184 --> $DIR/identity_op.rs:98:5
186 LL | 0 + if b { 1 } else { 2 } + if b { 3 } else { 4 } + 0;
187 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
189 error: the operation is ineffective. Consider reducing it to `a`
190 --> $DIR/identity_op.rs:106:7
192 LL | f(1 * a + { 8 * 5 });
195 error: the operation is ineffective. Consider reducing it to `{ 2 * 4 }`
196 --> $DIR/identity_op.rs:108:20
198 LL | const _: i32 = { 2 * 4 } + 0 + 3;
201 error: aborting due to 33 previous errors