fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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