about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-12 17:40:56 +0100
committerGitHub <noreply@github.com>2023-12-12 17:40:56 +0100
commitd661974017d2099efd128127843c27db3601fbaf (patch)
tree4a794d4dd131e09f856bbfd840eec000463ad764 /compiler/rustc_codegen_llvm/src
parent9ed12f8d7ad67de8597e7ae758375bc281fa5356 (diff)
parent19e0c984d3ff44c6e273ddae2f327e8ad8726fae (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions