bors
c97d02cdb5
Auto merge of #102394 - dingxiangfei2009:issue-102317, r=oli-obk
...
Fix unwind drop glue for if-then scopes
cc `@est31`
Fix #102317
Fix #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.
2022-10-05 20:47:39 +00:00
..
2022-10-03 11:42:29 +11:00
2022-09-30 15:12:01 -03:00
2022-09-26 19:19:21 +02:00
2022-09-14 08:49:10 +08:00
2022-09-26 10:14:45 +02:00
2022-10-04 14:10:44 +00:00
2022-10-03 20:58:55 +02:00
2022-09-27 17:38:51 +02:00
2022-10-02 13:42:14 +00:00
2022-10-05 11:41:40 +00:00
2022-10-05 17:27:33 +05:30
2022-10-05 09:22:50 +02:00
2022-10-01 16:24:30 +02:00
2022-09-27 10:37:23 +02:00
2022-10-03 08:53:06 +02:00
2022-10-04 16:11:02 +05:30
2022-10-01 16:12:50 +02:00
2022-10-04 09:08:02 +11:00
2022-09-27 15:55:42 +02:00
2022-09-29 08:44:52 +10:00
2022-10-05 17:27:33 +05:30
2022-09-26 10:14:45 +02:00
2022-09-28 13:07:17 +09:00
2022-10-05 17:27:33 +05:30
2022-09-30 21:02:53 +02:00
2022-09-28 08:14:04 +00:00
2022-10-04 16:11:02 +05:30
2022-10-01 16:12:50 +02:00
2022-09-26 16:51:18 -07:00
2022-10-03 13:52:17 +01:00
2022-09-30 04:24:14 +00:00
2022-10-04 18:26:41 +02:00
2022-10-05 20:47:39 +00:00
2022-09-26 10:14:45 +02:00
2022-10-01 10:03:06 +00:00
2022-10-04 14:10:44 +00:00
2022-10-03 11:42:29 +11:00
2022-09-28 13:47:17 -07:00
2022-10-04 08:59:20 +00:00
2022-09-21 11:39:53 -04:00
2022-09-29 08:44:52 +10:00
2022-10-01 16:20:08 +02:00
2022-10-01 15:58:42 +02:00
2022-09-30 23:38:25 +02:00
2022-09-29 08:44:52 +10:00
2022-09-26 10:14:45 +02:00
2022-09-30 01:39:20 +00:00
2022-09-30 19:06:05 +02:00
2022-10-04 14:10:44 +00:00
2022-10-05 09:22:50 +02:00
2022-10-04 20:45:14 -07:00
2022-10-04 14:10:44 +00:00
2022-10-03 17:51:18 +09:00
2022-10-04 18:26:41 +02:00
2022-09-13 14:50:12 -07:00