diff options
| author | bors <bors@rust-lang.org> | 2021-09-03 20:31:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-03 20:31:43 +0000 |
| commit | b7404c898a1a6933b71c72428a6dce551bcc1be7 (patch) | |
| tree | c05765937952ac30c6d3be18c9280ceb23413a1a /compiler/rustc_llvm/src | |
| parent | 4878034c000a0404a4c83e77eddf493deab550d6 (diff) | |
| parent | 4e2fd4fcb2a7d2f21029d070ca4583601b271cc1 (diff) | |
| download | rust-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
