@@ -344,34 +344,40 @@ LL | let _ = -(x + y + 0i32);
344344 | ^^^^^^^^^^^^^^ help: consider reducing it to: `(x + y)`
345345
346346error: this operation has no effect
347- --> tests/ui/identity_op.rs:236:20
347+ --> tests/ui/identity_op.rs:236:14
348+ |
349+ LL | let _ = -(x / y / 1i32);
350+ | ^^^^^^^^^^^^^^ help: consider reducing it to: `(x / y)`
351+
352+ error: this operation has no effect
353+ --> tests/ui/identity_op.rs:239:20
348354 |
349355LL | let _ = 2i32 * (x + y + 0i32);
350356 | ^^^^^^^^^^^^^^ help: consider reducing it to: `(x + y)`
351357
352358error: this operation has no effect
353- --> tests/ui/identity_op.rs:240 :20
359+ --> tests/ui/identity_op.rs:243 :20
354360 |
355361LL | let _ = 2i32 - (x - y - 0i32);
356362 | ^^^^^^^^^^^^^^ help: consider reducing it to: `(x - y)`
357363
358364error: this operation has no effect
359- --> tests/ui/identity_op.rs:244 :17
365+ --> tests/ui/identity_op.rs:247 :17
360366 |
361367LL | let _ = 2 + (x + (y * z) + 0);
362368 | ^^^^^^^^^^^^^^^^^ help: consider reducing it to: `x + (y * z)`
363369
364370error: this operation has no effect
365- --> tests/ui/identity_op.rs:248 :20
371+ --> tests/ui/identity_op.rs:251 :20
366372 |
367373LL | let _ = 2i32 + (x * y * 1i32);
368374 | ^^^^^^^^^^^^^^ help: consider reducing it to: `(x * y)`
369375
370376error: this operation has no effect
371- --> tests/ui/identity_op.rs:253 :25
377+ --> tests/ui/identity_op.rs:256 :25
372378 |
373379LL | let _: u64 = 1u64 + ((x as i32 + y as i32) as u64 + 0u64);
374380 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider reducing it to: `(x as i32 + y as i32) as u64`
375381
376- error: aborting due to 62 previous errors
382+ error: aborting due to 63 previous errors
377383
0 commit comments