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
..
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-05 09:30:27 +00:00
2024-01-02 15:34:37 -05:00
2023-12-28 02:03:43 +01:00
2024-01-05 04:51:55 +00:00
2024-01-05 10:00:59 +00:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-05 10:00:59 +00:00
2024-01-03 23:49:56 +00:00
2024-01-02 15:34:37 -05:00
2023-12-30 01:06:03 +01:00
2024-01-05 20:39:52 +01:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-05 09:30:27 +00:00
2024-01-05 04:51:55 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 20:39:53 +01:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:57:20 -05:00
2024-01-02 14:17:56 +00:00
2023-12-27 12:51:32 +01:00
2024-01-02 15:34:37 -05:00
2024-01-03 15:27:58 +01:00
2024-01-05 14:48:53 +00:00
2024-01-02 15:34:37 -05:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 04:51:55 +00:00
2023-12-28 02:03:43 +01:00
2024-01-05 10:00:59 +00:00
2024-01-05 20:39:52 +01:00
2024-01-05 09:30:27 +00:00
2024-01-05 04:51:55 +00:00
2024-01-02 15:34:37 -05:00
2024-01-05 10:57:22 -05:00
2024-01-05 04:51:55 +00:00
2023-12-27 17:26:12 +00:00
2024-01-04 00:46:33 +00:00
2024-01-02 22:18:35 +00:00
2024-01-02 15:34:37 -05:00
2024-01-05 04:51:55 +00:00
2024-01-05 20:39:52 +01:00
2024-01-04 02:02:57 +08:00
2024-01-04 21:44:14 +00:00
2024-01-05 09:30:27 +00:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-03 18:59:42 +00:00
2024-01-05 20:39:52 +01:00
2024-01-05 09:30:27 +00:00
2024-01-03 10:00:15 -08:00
2024-01-05 09:30:27 +00:00
2023-12-26 17:57:33 +01:00
2024-01-05 09:30:27 +00:00
2024-01-05 04:51:55 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 09:30:27 +00:00
2024-01-05 10:56:59 +00:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-05 20:39:50 +01:00
2023-12-30 18:17:28 +01:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 20:39:51 +01:00
2023-12-26 23:48:55 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 20:39:50 +01:00
2024-01-02 15:34:37 -05:00
2024-01-02 14:17:56 +00:00
2024-01-02 15:34:37 -05:00
2024-01-05 10:00:59 +00:00
2023-12-28 19:46:51 +01:00
2023-12-26 04:07:38 +00:00
2024-01-05 10:00:59 +00:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 14:17:56 +00:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00