Files
rust/src/test/ui
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-08-31 18:24:55 +08:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-09-26 14:21:39 +02:00
2022-09-27 17:38:51 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-09-26 14:21:39 +02:00
2022-09-10 23:50:20 +08:00
2022-10-01 10:03:06 +00:00
2022-09-26 14:21:39 +02:00
2022-09-23 18:42:14 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-09-13 14:50:12 -07:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-08-28 01:24:41 +00:00
2022-10-01 10:03:06 +00:00
2022-09-28 16:55:00 +08:00
2022-10-01 10:03:06 +00:00
2022-09-26 14:21:39 +02:00
2022-09-19 15:13:34 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-08-21 02:35:11 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-09-26 14:21:39 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-08-21 02:34:52 +00:00
2022-09-23 08:19:58 +02:00
2022-08-30 06:19:48 +00:00
2022-10-01 10:03:06 +00:00
2022-09-23 08:19:58 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-09-24 19:26:54 +00:00
2022-10-01 10:03:06 +00:00
2022-09-23 08:19:58 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-09-23 08:19:58 +02:00
2022-09-23 08:19:58 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-03 21:11:47 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-09-28 11:42:52 +09:00
2022-09-26 14:21:39 +02:00
2022-10-01 10:03:06 +00:00
2022-09-26 14:21:39 +02:00
2022-09-17 13:31:04 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-08-31 18:24:55 +08:00
2022-08-30 06:19:48 +00:00
2022-09-23 08:19:58 +02:00
2022-09-23 08:19:58 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-08-21 02:34:52 +00:00
2022-10-01 10:03:06 +00:00
2022-08-21 02:34:52 +00:00
2022-09-27 17:38:51 +02:00
2022-09-23 21:51:40 +02:00
2022-09-23 08:19:58 +02:00
2022-09-26 14:21:39 +02:00
2022-09-23 08:19:58 +02:00