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-1
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-2
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-2
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-2
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
Copy file name to clipboardExpand all lines: tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ LL | match 0 {
21
21
= note: the matched value is of type `i32`
22
22
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/pattern/pattern-binding-disambiguation.stderr
+3-2
Original file line number
Diff line number
Diff line change
@@ -77,8 +77,9 @@ LL | BracedVariant{},
77
77
= note: the matched value is of type `E`
78
78
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
79
79
|
80
-
LL | UnitVariant => {}, E::TupleVariant | E::BracedVariant { } => todo!() // OK, `UnitVariant` is a unit variant pattern
Copy file name to clipboardExpand all lines: tests/ui/pattern/usefulness/doc-hidden-non-exhaustive.stderr
+5-5
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ LL | pub enum HiddenEnum {
12
12
= note: the matched value is of type `HiddenEnum`
13
13
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
14
14
|
15
-
LL ~ HiddenEnum::B => {},
15
+
LL ~ HiddenEnum::B => {}
16
16
LL + _ => todo!()
17
17
|
18
18
@@ -33,7 +33,7 @@ LL | B,
33
33
= note: the matched value is of type `HiddenEnum`
34
34
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
35
35
|
36
-
LL ~ HiddenEnum::C => {},
36
+
LL ~ HiddenEnum::C => {}
37
37
LL + HiddenEnum::B => todo!()
38
38
|
39
39
@@ -54,7 +54,7 @@ LL | B,
54
54
= note: the matched value is of type `HiddenEnum`
55
55
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
56
56
|
57
-
LL ~ HiddenEnum::A => {},
57
+
LL ~ HiddenEnum::A => {}
58
58
LL + HiddenEnum::B | _ => todo!()
59
59
|
60
60
@@ -72,7 +72,7 @@ note: `Option<HiddenEnum>` defined here
72
72
= note: the matched value is of type `Option<HiddenEnum>`
73
73
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
74
74
|
75
-
LL ~ Some(HiddenEnum::A) => {},
75
+
LL ~ Some(HiddenEnum::A) => {}
76
76
LL + Some(HiddenEnum::B) | Some(_) => todo!()
77
77
|
78
78
@@ -93,7 +93,7 @@ LL | C,
93
93
= note: the matched value is of type `InCrate`
94
94
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