mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Update results for tests affected by the change
This commit is contained in:
@@ -569,6 +569,7 @@ note: `Result<!, !>` defined here
|
||||
= note: not covered
|
||||
= note: the matched value is of type `Result<!, !>`
|
||||
= note: `!` is uninhabited but is not being matched by value, so a wildcard `_` is required
|
||||
= note: match arms with guards don't count towards exhaustivity
|
||||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
||||
|
|
||||
LL ~ Err(_) => {},
|
||||
|
||||
@@ -569,6 +569,7 @@ note: `Result<!, !>` defined here
|
||||
= note: not covered
|
||||
= note: the matched value is of type `Result<!, !>`
|
||||
= note: `!` is uninhabited but is not being matched by value, so a wildcard `_` is required
|
||||
= note: match arms with guards don't count towards exhaustivity
|
||||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
||||
|
|
||||
LL ~ Err(_) => {},
|
||||
|
||||
@@ -5,6 +5,7 @@ LL | match 0u8 {
|
||||
| ^^^ pattern `128_u8..=u8::MAX` not covered
|
||||
|
|
||||
= note: the matched value is of type `u8`
|
||||
= note: match arms with guards don't count towards exhaustivity
|
||||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
||||
|
|
||||
LL ~ 128 ..= 255 if true => {},
|
||||
|
||||
@@ -20,6 +20,7 @@ LL | match "world" {
|
||||
|
|
||||
= note: the matched value is of type `&str`
|
||||
= note: `&str` cannot be matched exhaustively, so a wildcard `_` is necessary
|
||||
= note: match arms with guards don't count towards exhaustivity
|
||||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
||||
|
|
||||
LL ~ "hello" => {},
|
||||
|
||||
@@ -9,6 +9,7 @@ fn main() {
|
||||
//~^ ERROR non-exhaustive patterns: `(X::A, Some(X::A))`, `(X::A, Some(X::B))`, `(X::B, Some(X::B))` and 2
|
||||
//~| NOTE more not covered
|
||||
//~| NOTE the matched value is of type `(X, Option<X>)`
|
||||
//~| NOTE match arms with guards don't count towards exhaustivity
|
||||
(_, None) => false,
|
||||
(v, Some(w)) if v == w => true,
|
||||
(X::B, Some(X::C)) => false,
|
||||
|
||||
@@ -5,6 +5,7 @@ LL | match (x, y) {
|
||||
| ^^^^^^ patterns `(X::A, Some(X::A))`, `(X::A, Some(X::B))`, `(X::B, Some(X::B))` and 2 more not covered
|
||||
|
|
||||
= note: the matched value is of type `(X, Option<X>)`
|
||||
= note: match arms with guards don't count towards exhaustivity
|
||||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown, or multiple match arms
|
||||
|
|
||||
LL ~ (X::A, Some(X::C)) | (X::C, Some(X::A)) => false,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
fn main() {
|
||||
match 0 { 1 => () } //~ ERROR non-exhaustive patterns
|
||||
match 0 { 0 if false => () } //~ ERROR non-exhaustive patterns
|
||||
//-| NOTE match arms with guards don't count towards exhaustivity
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ LL | match 0 { 0 if false => () }
|
||||
| ^ patterns `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered
|
||||
|
|
||||
= note: the matched value is of type `i32`
|
||||
= note: match arms with guards don't count towards exhaustivity
|
||||
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
|
||||
|
|
||||
LL | match 0 { 0 if false => (), i32::MIN..=-1_i32 | 1_i32..=i32::MAX => todo!() }
|
||||
|
||||
@@ -44,6 +44,7 @@ note: `Option<Void>` defined here
|
||||
= note: not covered
|
||||
= note: the matched value is of type `&Option<Void>`
|
||||
= note: `Void` is uninhabited but is not being matched by value, so a wildcard `_` is required
|
||||
= note: match arms with guards don't count towards exhaustivity
|
||||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
||||
|
|
||||
LL ~ None => {},
|
||||
@@ -63,6 +64,7 @@ note: `Option<Void>` defined here
|
||||
= note: not covered
|
||||
= note: the matched value is of type `&Option<Void>`
|
||||
= note: `Void` is uninhabited but is not being matched by value, so a wildcard `_` is required
|
||||
= note: match arms with guards don't count towards exhaustivity
|
||||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
||||
|
|
||||
LL ~ None => {},
|
||||
|
||||
@@ -10,6 +10,7 @@ note: `Option<u32>` defined here
|
||||
|
|
||||
= note: not covered
|
||||
= note: the matched value is of type `Option<u32>`
|
||||
= note: match arms with guards don't count towards exhaustivity
|
||||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
||||
|
|
||||
LL ~ None if let y = x => {},
|
||||
|
||||
Reference in New Issue
Block a user