@@ -149,7 +149,7 @@ error: this operation has no effect
149149 --> tests/ui/identity_op.rs:119:5
150150 |
151151LL | (if b { 1 } else { 2 }) + 0;
152- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider reducing it to: `(if b { 1 } else { 2 })`
152+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider reducing it to: `(( if b { 1 } else { 2 }) )`
153153
154154error: this operation has no effect
155155 --> tests/ui/identity_op.rs:122:5
@@ -221,7 +221,7 @@ error: this operation has no effect
221221 --> tests/ui/identity_op.rs:152:5
222222 |
223223LL | 1 * ({ a } + 4);
224- | ^^^^^^^^^^^^^^^ help: consider reducing it to: `({ a } + 4)`
224+ | ^^^^^^^^^^^^^^^ help: consider reducing it to: `(( { a } + 4) )`
225225
226226error: this operation has no effect
227227 --> tests/ui/identity_op.rs:154:5
@@ -329,13 +329,13 @@ error: this operation has no effect
329329 --> tests/ui/identity_op.rs:226:25
330330 |
331331LL | let _: u64 = 1u64 & ((x + y) + 0i32) as u64;
332- | ^^^^^^^^^^^^^^^^ help: consider reducing it to: `(x + y)`
332+ | ^^^^^^^^^^^^^^^^ help: consider reducing it to: `(( x + y) )`
333333
334334error: this operation has no effect
335335 --> tests/ui/identity_op.rs:229:25
336336 |
337337LL | let _: u64 = 5u64 + ((x + y) + 0i32) as u64;
338- | ^^^^^^^^^^^^^^^^ help: consider reducing it to: `(x + y)`
338+ | ^^^^^^^^^^^^^^^^ help: consider reducing it to: `(( x + y) )`
339339
340340error: this operation has no effect
341341 --> tests/ui/identity_op.rs:233:14
@@ -365,7 +365,7 @@ error: this operation has no effect
365365 --> tests/ui/identity_op.rs:247:17
366366 |
367367LL | let _ = 2 + (x + (y * z) + 0);
368- | ^^^^^^^^^^^^^^^^^ help: consider reducing it to: `x + (y * z)`
368+ | ^^^^^^^^^^^^^^^^^ help: consider reducing it to: `( x + (y * z) )`
369369
370370error: this operation has no effect
371371 --> tests/ui/identity_op.rs:251:20
@@ -377,7 +377,7 @@ error: this operation has no effect
377377 --> tests/ui/identity_op.rs:256:25
378378 |
379379LL | let _: u64 = 1u64 + ((x as i32 + y as i32) as u64 + 0u64);
380- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider reducing it to: `(x as i32 + y as i32) as u64`
380+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider reducing it to: `(( x as i32 + y as i32) as u64) `
381381
382382error: aborting due to 63 previous errors
383383
0 commit comments