forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 69cfe80
authored
Rollup merge of rust-lang#123096 - compiler-errors:postfix-match-parens, r=fmease
Don't check match scrutinee of postfix match for unused parens
We only check the scrutinees of block-like constructs and a few others (return/index/assign/method calls). Just don't do it for postfix match at all.
Fixes rust-lang#123064
r? fmeaseFile tree
2 files changed
+11
-1
lines changed- compiler/rustc_lint/src
- tests/ui/match/postfix-match
2 files changed
+11
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
865 | 865 |
| |
866 | 866 |
| |
867 | 867 |
| |
868 | - | ||
868 | + | ||
869 | + | ||
870 | + | ||
869 | 871 |
| |
870 | 872 |
| |
871 | 873 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + |
0 commit comments