about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-29 20:27:14 +0000
committerbors <bors@rust-lang.org>2021-08-29 20:27:14 +0000
commit2f662b14033c4369b0a7b5c2656592ef08edf434 (patch)
treeac6891e7e1f40bb9439c9dc5218d7f4116a59097 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentae0b03bc6b4e1544f43b9a8053bdb0f0ed4a19e1 (diff)
parent33817d2881843bb84a01551813c522891ce0c5c6 (diff)
downloadrust-2f662b14033c4369b0a7b5c2656592ef08edf434.tar.gz
rust-2f662b14033c4369b0a7b5c2656592ef08edf434.zip
Auto merge of #88280 - sexxi-goose:non-exhaustive, r=nikomatsakis
Handle match statements with non exhaustive variants in closures

This PR ensures that the behavior for match statements with non exhaustive variants is the same inside and outside closures.

If we have a non-exhaustive SingleVariant which is defined in a different crate, then we should handle the case the same way we would handle a MultiVariant: borrow the match discriminant.

Closes https://github.com/rust-lang/project-rfc-2229/issues/59
r? `@nikomatsakis`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions