mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 11:36:26 +00:00
When a `yield` is outside of a generator, check its value regardless to avoid an ICE while trying to get all locals' types in writeback. Fix #78653.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.