|  | 
|  | 1 | +error: unnecessary parentheses around `let` scrutinee expression | 
|  | 2 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:14:29 | 
|  | 3 | +   | | 
|  | 4 | +LL |         while let Some(_) = ({yield}) {} | 
|  | 5 | +   |                             ^^^^^^^^^ help: remove these parentheses | 
|  | 6 | +   | | 
|  | 7 | +note: the lint level is defined here | 
|  | 8 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:3:24 | 
|  | 9 | +   | | 
|  | 10 | +LL | #![deny(unused_braces, unused_parens)] | 
|  | 11 | +   |                        ^^^^^^^^^^^^^ | 
|  | 12 | + | 
|  | 13 | +error: unnecessary parentheses around `let` scrutinee expression | 
|  | 14 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:15:29 | 
|  | 15 | +   | | 
|  | 16 | +LL |         while let Some(_) = ((yield)) {} | 
|  | 17 | +   |                             ^^^^^^^^^ help: remove these parentheses | 
|  | 18 | + | 
|  | 19 | +error: unnecessary braces around block return value | 
|  | 20 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:16:10 | 
|  | 21 | +   | | 
|  | 22 | +LL |         {{yield}}; | 
|  | 23 | +   |          ^^^^^^^ help: remove these braces | 
|  | 24 | +   | | 
|  | 25 | +note: the lint level is defined here | 
|  | 26 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:3:9 | 
|  | 27 | +   | | 
|  | 28 | +LL | #![deny(unused_braces, unused_parens)] | 
|  | 29 | +   |         ^^^^^^^^^^^^^ | 
|  | 30 | + | 
|  | 31 | +error: unnecessary parentheses around block return value | 
|  | 32 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:17:10 | 
|  | 33 | +   | | 
|  | 34 | +LL |         {( yield )}; | 
|  | 35 | +   |          ^^^^^^^^^ help: remove these parentheses | 
|  | 36 | + | 
|  | 37 | +error: unnecessary braces around `let` scrutinee expression | 
|  | 38 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:21:29 | 
|  | 39 | +   | | 
|  | 40 | +LL |         while let Some(_) = {(yield)} {} | 
|  | 41 | +   |                             ^^^^^^^^^ help: remove these braces | 
|  | 42 | + | 
|  | 43 | +error: unnecessary parentheses around block return value | 
|  | 44 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:21:30 | 
|  | 45 | +   | | 
|  | 46 | +LL |         while let Some(_) = {(yield)} {} | 
|  | 47 | +   |                              ^^^^^^^ help: remove these parentheses | 
|  | 48 | + | 
|  | 49 | +error: unnecessary braces around `let` scrutinee expression | 
|  | 50 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:24:29 | 
|  | 51 | +   | | 
|  | 52 | +LL |         while let Some(_) = {{yield}} {} | 
|  | 53 | +   |                             ^^^^^^^^^ help: remove these braces | 
|  | 54 | + | 
|  | 55 | +error: unnecessary braces around block return value | 
|  | 56 | +  --> $DIR/issue-74883-unused-paren-baren-yield.rs:24:30 | 
|  | 57 | +   | | 
|  | 58 | +LL |         while let Some(_) = {{yield}} {} | 
|  | 59 | +   |                              ^^^^^^^ help: remove these braces | 
|  | 60 | + | 
|  | 61 | +error: aborting due to 8 previous errors | 
|  | 62 | + | 
0 commit comments