@@ -513,44 +513,6 @@ warning: the feature `let_chains` is incomplete and may cause the compiler to cr
513
513
LL | #![feature(let_chains)] // Avoid inflating `.stderr` with overzealous gates in this test.
514
514
| ^^^^^^^^^^
515
515
516
- warning: unnecessary parentheses around `if` condition
517
- --> $DIR/disallowed-positions.rs:51:8
518
- |
519
- LL | if (true || let 0 = 0) {}
520
- | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
521
- |
522
- = note: `#[warn(unused_parens)]` on by default
523
-
524
- warning: unnecessary parentheses around `while` condition
525
- --> $DIR/disallowed-positions.rs:115:11
526
- |
527
- LL | while (true || let 0 = 0) {}
528
- | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
529
-
530
- wrning: unnecessary parentheses around `let` head expression
531
- --> $DIR/disallowed-positions.rs:160:41
532
- |
533
- LL | if let Range { start: _, end: _ } = (true..true || false) { }
534
- | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
535
-
536
- warning: unnecessary parentheses around `let` head expression
537
- --> $DIR/disallowed-positions.rs:162:41
538
- |
539
- LL | if let Range { start: _, end: _ } = (true..true && false) { }
540
- | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
541
-
542
- warning: unnecessary parentheses around `let` head expression
543
- --> $DIR/disallowed-positions.rs:164:44
544
- |
545
- LL | while let Range { start: _, end: _ } = (true..true || false) { }
546
- | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
547
-
548
- warning: unnecessary parentheses around `let` head expression
549
- --> $DIR/disallowed-positions.rs:166:44
550
- |
551
- LL | while let Range { start: _, end: _ } = (true..true && false) { }
552
- | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
553
-
554
516
error[E0308]: mismatched types
555
517
--> $DIR/disallowed-positions.rs:32:8
556
518
|
0 commit comments