Skip to content

Commit

Permalink
Auto merge of rust-lang#102394 - dingxiangfei2009:issue-102317, r=oli…
Browse files Browse the repository at this point in the history
…-obk

Fix unwind drop glue for if-then scopes

cc `@est31`

Fix rust-lang#102317
Fix rust-lang#99852

This PR fixes the drop glue for unwinding from a panic originated in a drop while breaking out for the else block in an `if-then` scope.
MIR validation does not fail for the synchronous versions of the test program, because `StorageDead` statements are skipped over in the unwinding process. It is only becoming a problem when it is inside a generator where `StorageDead` must be kept around.
  • Loading branch information
bors committed Oct 5, 2022
2 parents c0a616e + cf62e8a commit 7ee48ea
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 7ee48ea

Please sign in to comment.