Matthias Krüger d661974017
Rollup merge of #118868 - Nadrieril:correctly-gate-never_patterns-parsing, r=petrochenkov
Correctly gate the parsing of match arms without body

https://github.com/rust-lang/rust/pull/118527 accidentally allowed the following to parse on stable:
```rust
match Some(0) {
    None => { foo(); }
    #[cfg(FALSE)]
    Some(_)
}
```

This fixes that oversight. The way I choose which error to emit is the best I could think of, I'm open if you know a better way.

r? `@petrochenkov` since you're the one who noticed
2023-12-12 17:40:56 +01:00
..
2023-12-03 12:25:46 +01:00
fix
2023-10-09 19:24:05 +00:00
2023-11-16 17:00:23 +00:00
2023-10-04 01:35:07 +00:00
2023-10-04 01:35:07 +00:00