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-12-19 13:35:37 -05:00
2023-12-08 17:23:26 +00:00
2023-12-08 17:23:26 +00:00
2023-12-08 17:23:26 +00:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00
2023-10-27 13:05:48 +00:00
2023-10-27 13:05:48 +00:00
2023-12-04 11:23:06 -08:00
2023-11-13 14:13:54 +00:00
2023-10-28 23:11:03 -07:00
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00