about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-05 06:40:30 +0100
committerGitHub <noreply@github.com>2024-03-05 06:40:30 +0100
commit94bb2d2a974ece985dfea0da0622d4f987505dd3 (patch)
tree74bf2532698d90d3089cbca56caf93184690cc45 /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
parent72651306b3e6d7308bb35897501940cd9b97baff (diff)
parente0a726ca4bc08d1009803a6c819f701173810761 (diff)
downloadrust-94bb2d2a974ece985dfea0da0622d4f987505dd3.tar.gz
rust-94bb2d2a974ece985dfea0da0622d4f987505dd3.zip
Rollup merge of #121664 - compiler-errors:adjust-error-yield-lowering, r=spastorino
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp')
0 files changed, 0 insertions, 0 deletions