mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
94bb2d2a97
Adjust error `yield`/`await` lowering Adjust the lowering of `yield`/`await` outside of their correct scopes so that we no longer make orpan HIR exprs. Previously, `yield EXPR` would be lowered directly to `hir::TyKind::Error` (which I'll call `<error>`) which means that `EXPR` was not present in the HIR, but now we lower it to `{ EXPR; <error> }` so that `EXPR` is not orphaned. Fixes #121096 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |