rust/compiler/rustc_borrowck
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
..
src Rollup merge of #119563 - compiler-errors:coroutine-resume, r=oli-obk 2024-01-05 20:39:53 +01:00
Cargo.toml
messages.ftl