c244546626
Do not ICE when evaluating locals' types of invalid `yield` 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.