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
Account for non-exhausitve match expression coming from macro expansion
```
error[E0004]: non-exhaustive patterns: `u8::MAX` not covered
--> $DIR/exhaustiveness.rs:47:8
|
LL | m!(0u8, 0..255);
| ^^^ pattern `u8::MAX` not covered
|
= note: the matched value is of type `u8`
note: within macro `m`, this `match` expression doesn't expand to cover all patterns
--> $DIR/exhaustiveness.rs:7:9
|
LL | / macro_rules! m {
LL | | ($s:expr, $($t:tt)+) => {
LL | | match $s { $($t)+ => {} }
| | ^^^^^^^^^^^^^^^^^^^^^^^^^
LL | | }
LL | | }
| |_-
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern
```
0 commit comments