@@ -149,7 +149,7 @@ error: this operation has no effect
149
149
--> tests/ui/identity_op.rs:119:5
150
150
|
151
151
LL | (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 }) )`
153
153
154
154
error: this operation has no effect
155
155
--> tests/ui/identity_op.rs:122:5
@@ -221,7 +221,7 @@ error: this operation has no effect
221
221
--> tests/ui/identity_op.rs:152:5
222
222
|
223
223
LL | 1 * ({ a } + 4);
224
- | ^^^^^^^^^^^^^^^ help: consider reducing it to: `({ a } + 4)`
224
+ | ^^^^^^^^^^^^^^^ help: consider reducing it to: `(( { a } + 4) )`
225
225
226
226
error: this operation has no effect
227
227
--> tests/ui/identity_op.rs:154:5
@@ -329,13 +329,13 @@ error: this operation has no effect
329
329
--> tests/ui/identity_op.rs:226:25
330
330
|
331
331
LL | let _: u64 = 1u64 & ((x + y) + 0i32) as u64;
332
- | ^^^^^^^^^^^^^^^^ help: consider reducing it to: `(x + y)`
332
+ | ^^^^^^^^^^^^^^^^ help: consider reducing it to: `(( x + y) )`
333
333
334
334
error: this operation has no effect
335
335
--> tests/ui/identity_op.rs:229:25
336
336
|
337
337
LL | let _: u64 = 5u64 + ((x + y) + 0i32) as u64;
338
- | ^^^^^^^^^^^^^^^^ help: consider reducing it to: `(x + y)`
338
+ | ^^^^^^^^^^^^^^^^ help: consider reducing it to: `(( x + y) )`
339
339
340
340
error: this operation has no effect
341
341
--> tests/ui/identity_op.rs:233:14
@@ -365,7 +365,7 @@ error: this operation has no effect
365
365
--> tests/ui/identity_op.rs:247:17
366
366
|
367
367
LL | let _ = 2 + (x + (y * z) + 0);
368
- | ^^^^^^^^^^^^^^^^^ help: consider reducing it to: `x + (y * z)`
368
+ | ^^^^^^^^^^^^^^^^^ help: consider reducing it to: `( x + (y * z) )`
369
369
370
370
error: this operation has no effect
371
371
--> tests/ui/identity_op.rs:251:20
@@ -377,7 +377,7 @@ error: this operation has no effect
377
377
--> tests/ui/identity_op.rs:256:25
378
378
|
379
379
LL | 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) `
381
381
382
382
error: aborting due to 63 previous errors
383
383
0 commit comments