about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-07 15:14:20 +0000
committerbors <bors@rust-lang.org>2024-05-07 15:14:20 +0000
commit0f40f14b61430792cc0ea316f424685041e8443e (patch)
tree46587d493a80b44dd89552fdf2c1c3184bbdac6c /compiler/rustc_codegen_llvm/src
parentcc8d9b692720c7d15445024485c4bbfce35dbce6 (diff)
parent57e8aebb6c035c0279677c041fbb589466ce9146 (diff)
downloadrust-0f40f14b61430792cc0ea316f424685041e8443e.tar.gz
rust-0f40f14b61430792cc0ea316f424685041e8443e.zip
Auto merge of #123332 - Nadrieril:testkind-never, r=matthewjasper
never patterns: lower never patterns to `Unreachable` in MIR

This lowers a `!` pattern to "goto Unreachable". Ideally I'd like to read from the place to make it clear that the UB is coming from an invalid value, but that's tricky so I'm leaving it for later.

r? `@compiler-errors` how do you feel about a lil bit of MIR lowering
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions