You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Better track trailing commas in match arms. Do not suggest adding trailing comma to match arm with block body. Better heuristic for "is this match in one line".
Copy file name to clipboardExpand all lines: tests/ui/consts/const_in_pattern/incomplete-slice.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ LL | E_SL_var => {}
19
19
| ++++
20
20
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
Copy file name to clipboardExpand all lines: tests/ui/feature-gates/feature-gate-precise_pointer_size_matching.stderr
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ LL | match 0usize {
8
8
= note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
9
9
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
10
10
|
11
-
LL ~ 0..=usize::MAX => {},
11
+
LL ~ 0..=usize::MAX => {}
12
12
LL + usize::MAX.. => todo!()
13
13
|
14
14
@@ -22,7 +22,7 @@ LL | match 0isize {
22
22
= note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
23
23
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
Copy file name to clipboardExpand all lines: tests/ui/match/intended-binding-pattern-is-const.stderr
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,9 @@ LL | x_var => {}
19
19
| ++++
20
20
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
21
21
|
22
-
LL | x => {}, i32::MIN..=3_i32 | 5_i32..=i32::MAX => todo!()
Copy file name to clipboardExpand all lines: tests/ui/match/validate-range-endpoints.stderr
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ LL | match 0i8 {
61
61
= note: the matched value is of type `i8`
62
62
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
63
63
|
64
-
LL ~ -10000..=0 => {},
64
+
LL ~ -10000..=0 => {}
65
65
LL + i8::MIN..=-17_i8 | 1_i8..=i8::MAX => todo!()
66
66
|
67
67
@@ -74,7 +74,7 @@ LL | match 0i8 {
74
74
= note: the matched value is of type `i8`
75
75
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
0 commit comments