about summary refs log tree commit diff
path: root/compiler/rustc_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-09-03 20:31:43 +0000
committerbors <bors@rust-lang.org>2021-09-03 20:31:43 +0000
commitb7404c898a1a6933b71c72428a6dce551bcc1be7 (patch)
treec05765937952ac30c6d3be18c9280ceb23413a1a /compiler/rustc_llvm/src
parent4878034c000a0404a4c83e77eddf493deab550d6 (diff)
parent4e2fd4fcb2a7d2f21029d070ca4583601b271cc1 (diff)
downloadrust-b7404c898a1a6933b71c72428a6dce551bcc1be7.tar.gz
rust-b7404c898a1a6933b71c72428a6dce551bcc1be7.zip
Auto merge of #88572 - matthewjasper:if-let-scoping-fix, r=oli-obk
Fix drop handling for `if let` expressions

MIR lowering for `if let` expressions is now more complicated now that
`if let` exists in HIR. This PR adds a scope for the variables bound in
an `if let` expression and then uses an approach similar to how we
handle loops to ensure that we reliably drop the correct variables.

Closes #88307
cc `@flip1995` `@richkadel` `@c410-f3r`
Diffstat (limited to 'compiler/rustc_llvm/src')
0 files changed, 0 insertions, 0 deletions