diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-12-12 17:40:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-12 17:40:56 +0100 |
| commit | d661974017d2099efd128127843c27db3601fbaf (patch) | |
| tree | 4a794d4dd131e09f856bbfd840eec000463ad764 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 9ed12f8d7ad67de8597e7ae758375bc281fa5356 (diff) | |
| parent | 19e0c984d3ff44c6e273ddae2f327e8ad8726fae (diff) | |
| download | rust-d661974017d2099efd128127843c27db3601fbaf.tar.gz rust-d661974017d2099efd128127843c27db3601fbaf.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
