mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
ad7aabd965
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