Matthias Krüger
ad7aabd965
Rollup merge of #119563 - compiler-errors:coroutine-resume, r=oli-obk
...
Check yield terminator's resume type in borrowck
In borrowck, we didn't check that the lifetimes of the `TerminatorKind::Yield`'s `resume_place` were actually compatible with the coroutine's signature. That means that the lifetimes were totally going unchecked. Whoops!
This PR implements this checking.
Fixes #119564
r? types
2024-01-05 20:39:53 +01:00
..
2023-10-30 08:46:02 +11:00
2023-12-30 18:17:28 +01:00
2023-12-05 17:52:51 -08:00
2024-01-04 03:53:56 +03:00
2024-01-05 10:56:59 +00:00
2024-01-05 20:39:51 +01:00
2023-12-27 21:27:26 +00:00
2024-01-03 19:40:20 +11:00
2023-11-15 19:41:28 -05:00
2024-01-05 20:39:53 +01:00
2024-01-04 16:09:31 +11:00
2023-12-31 13:29:53 +00:00
2024-01-05 10:57:21 -05:00
2024-01-05 16:31:05 +00:00
2024-01-05 16:31:05 +00:00
2024-01-05 10:57:22 -05:00
2023-12-30 18:17:28 +01:00
2023-11-15 19:41:28 -05:00
2024-01-05 10:57:24 -05:00
2024-01-03 16:08:30 +01:00
2023-11-26 08:37:27 +11:00
2024-01-05 10:57:24 -05:00
2024-01-05 10:57:24 -05:00
2024-01-05 20:39:51 +01:00
2023-11-26 08:38:02 +11:00
2023-10-30 08:46:02 +11:00
2023-11-23 14:11:02 +03:00
2024-01-05 10:56:59 +00:00
2024-01-05 20:39:52 +01:00
2024-01-05 10:56:59 +00:00
2024-01-05 20:39:52 +01:00
2024-01-02 07:31:02 -05:00
2023-12-23 00:04:20 +01:00
2023-11-27 09:37:01 +11:00
2024-01-05 20:39:52 +01:00
2024-01-05 10:57:22 -05:00
2023-12-13 14:17:50 +11:00
2024-01-05 10:57:21 -05:00
2024-01-05 04:51:55 +00:00
2023-12-18 17:03:11 +01:00
2023-11-11 15:24:33 +01:00
2024-01-03 19:40:20 +11:00
2024-01-05 10:57:21 -05:00
2024-01-05 20:39:53 +01:00
2024-01-05 20:39:53 +01:00
2023-12-28 16:35:01 +00:00
2024-01-05 20:39:53 +01:00
2024-01-05 10:57:21 -05:00
2023-12-28 16:35:01 +00:00
2024-01-05 10:57:21 -05:00
2023-11-15 14:55:35 +00:00
2024-01-05 20:39:52 +01:00
2024-01-03 19:40:20 +11:00
2023-12-24 08:05:28 +11:00
2023-12-31 20:51:53 +00:00
2024-01-03 16:08:23 +01:00
2024-01-05 20:39:50 +01:00
2023-11-22 22:49:22 -05:00
2024-01-05 10:57:24 -05:00
2023-12-28 16:35:01 +00:00
2024-01-04 15:33:58 +01:00
2024-01-03 19:40:20 +11:00
2024-01-04 21:44:14 +00:00
2024-01-05 10:57:21 -05:00
2023-12-07 17:52:51 +01:00
2023-11-22 08:13:21 +11:00
2023-12-28 16:35:01 +00:00
2023-12-30 18:17:28 +01:00
2023-12-28 16:35:01 +00:00