2020-08-01 17:20:28 -05:00
|
|
|
error: unnecessary parentheses around `let` scrutinee expression
|
2020-08-02 11:31:21 -05:00
|
|
|
--> $DIR/issue-74883-unused-paren-baren-yield.rs:14:29
|
2020-08-01 17:20:28 -05:00
|
|
|
|
|
|
|
|
LL | while let Some(_) = ({yield}) {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
2020-08-01 17:20:28 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/issue-74883-unused-paren-baren-yield.rs:3:24
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_braces, unused_parens)]
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-09-09 09:22:24 -05:00
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - while let Some(_) = ({yield}) {}
|
|
|
|
LL + while let Some(_) = {yield} {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-08-01 17:20:28 -05:00
|
|
|
|
2020-08-02 11:31:21 -05:00
|
|
|
error: unnecessary parentheses around `let` scrutinee expression
|
|
|
|
--> $DIR/issue-74883-unused-paren-baren-yield.rs:15:29
|
2020-08-01 17:20:28 -05:00
|
|
|
|
|
2020-08-02 11:31:21 -05:00
|
|
|
LL | while let Some(_) = ((yield)) {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - while let Some(_) = ((yield)) {}
|
|
|
|
LL + while let Some(_) = (yield) {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-08-02 11:31:21 -05:00
|
|
|
|
|
|
|
error: unnecessary braces around block return value
|
|
|
|
--> $DIR/issue-74883-unused-paren-baren-yield.rs:16:10
|
|
|
|
|
|
|
|
|
LL | {{yield}};
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
2020-08-01 17:20:28 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/issue-74883-unused-paren-baren-yield.rs:3:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_braces, unused_parens)]
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-09-09 09:22:24 -05:00
|
|
|
help: remove these braces
|
|
|
|
|
|
|
|
|
LL - {{yield}};
|
|
|
|
LL + {yield};
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-08-01 17:20:28 -05:00
|
|
|
|
2020-08-02 11:31:21 -05:00
|
|
|
error: unnecessary parentheses around block return value
|
|
|
|
--> $DIR/issue-74883-unused-paren-baren-yield.rs:17:10
|
|
|
|
|
|
|
|
|
LL | {( yield )};
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^^ ^^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - {( yield )};
|
|
|
|
LL + {yield};
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-08-02 11:31:21 -05:00
|
|
|
|
|
|
|
error: unnecessary parentheses around block return value
|
2020-08-02 22:18:10 -05:00
|
|
|
--> $DIR/issue-74883-unused-paren-baren-yield.rs:18:30
|
2020-08-02 11:31:21 -05:00
|
|
|
|
|
|
|
|
LL | while let Some(_) = {(yield)} {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - while let Some(_) = {(yield)} {}
|
|
|
|
LL + while let Some(_) = {yield} {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-08-02 11:31:21 -05:00
|
|
|
|
|
|
|
error: unnecessary braces around block return value
|
2020-08-02 22:18:10 -05:00
|
|
|
--> $DIR/issue-74883-unused-paren-baren-yield.rs:19:30
|
2020-08-02 11:31:21 -05:00
|
|
|
|
|
|
|
|
LL | while let Some(_) = {{yield}} {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these braces
|
|
|
|
|
|
|
|
|
LL - while let Some(_) = {{yield}} {}
|
|
|
|
LL + while let Some(_) = {yield} {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-08-02 11:31:21 -05:00
|
|
|
|
2020-08-02 22:18:10 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2020-08-01 17:20:28 -05:00
|
|
|
|