Perform match checking on THIR.
This commit is contained in:
parent
3b47cdc439
commit
05082f57af
81 changed files with 668 additions and 997 deletions
|
@ -7,7 +7,7 @@ LL | match buf {
|
|||
= note: the matched value is of type `&[u8; 4]`
|
||||
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 ~ b"AAAA" => {}
|
||||
LL ~ b"AAAA" => {},
|
||||
LL + &[0_u8..=64_u8, _, _, _] | &[66_u8..=u8::MAX, _, _, _] => todo!()
|
||||
|
|
||||
|
||||
|
@ -20,7 +20,7 @@ LL | match buf {
|
|||
= note: the matched value is of type `&[u8]`
|
||||
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 ~ b"AAAA" => {}
|
||||
LL ~ b"AAAA" => {},
|
||||
LL + _ => todo!()
|
||||
|
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue