rust/compiler/rustc_parse/src
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
..
lexer Add spacing information to delimiters. 2023-12-11 09:36:40 +11:00
parser Don't gate the feature twice 2023-12-12 14:52:05 +01:00
errors.rs Support async gen fn 2023-12-08 17:23:26 +00:00
lib.rs Use rustc_fluent_macro::fluent_messages! directly. 2023-11-26 08:38:40 +11:00
validate_attr.rs Improve an error involving attribute values. 2023-12-12 15:54:25 +11:00