| error: unnecessary parentheses around assigned value |
| --> $DIR/unused-parens-for-macro-call-with-brace.rs:11:19 |
| | |
| LL | let Some(_) = ((x!{})) else { return }; |
| | ^ ^ |
| | |
| note: the lint level is defined here |
| --> $DIR/unused-parens-for-macro-call-with-brace.rs:3:9 |
| | |
| LL | #![deny(unused_parens)] |
| | ^^^^^^^^^^^^^ |
| help: remove these parentheses |
| | |
| LL - let Some(_) = ((x!{})) else { return }; |
| LL + let Some(_) = (x!{}) else { return }; |
| | |
| |
| error: unnecessary parentheses around pattern |
| --> $DIR/unused-parens-for-macro-call-with-brace.rs:14:14 |
| | |
| LL | let Some((_)) = (x!{}) else { return }; |
| | ^ ^ |
| | |
| help: remove these parentheses |
| | |
| LL - let Some((_)) = (x!{}) else { return }; |
| LL + let Some(_) = (x!{}) else { return }; |
| | |
| |
| error: unnecessary parentheses around assigned value |
| --> $DIR/unused-parens-for-macro-call-with-brace.rs:18:13 |
| | |
| LL | let _ = (x!{}); |
| | ^ ^ |
| | |
| help: remove these parentheses |
| | |
| LL - let _ = (x!{}); |
| LL + let _ = x!{}; |
| | |
| |
| error: unnecessary parentheses around `let` scrutinee expression |
| --> $DIR/unused-parens-for-macro-call-with-brace.rs:22:22 |
| | |
| LL | if let Some(_) = (x!{}) {}; |
| | ^ ^ |
| | |
| help: remove these parentheses |
| | |
| LL - if let Some(_) = (x!{}) {}; |
| LL + if let Some(_) = x!{} {}; |
| | |
| |
| error: unnecessary parentheses around `let` scrutinee expression |
| --> $DIR/unused-parens-for-macro-call-with-brace.rs:26:25 |
| | |
| LL | while let Some(_) = (x!{}) {}; |
| | ^ ^ |
| | |
| help: remove these parentheses |
| | |
| LL - while let Some(_) = (x!{}) {}; |
| LL + while let Some(_) = x!{} {}; |
| | |
| |
| error: aborting due to 5 previous errors |
| |