about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-14 19:56:55 +0000
committerbors <bors@rust-lang.org>2023-09-14 19:56:55 +0000
commit9756a135807b51f6be740aed0103a29721be123c (patch)
tree4e0ff1c4211ed660b771948258af9aa8b27635b6 /tests/codegen/patchable-function-entry
parenteb545d75689cdebcfd2884292085f470a4702784 (diff)
parentab08a3d7b2143154f16b82c388bb355aff6c4b4b (diff)
downloadrust-9756a135807b51f6be740aed0103a29721be123c.tar.gz
rust-9756a135807b51f6be740aed0103a29721be123c.zip
Auto merge of #115677 - matthewjasper:let-expr-recovery, r=b-naber
Improve invalid let expression handling

- Move all of the checks for valid let expression positions to parsing.
- Add a field to ExprKind::Let in AST/HIR to mark whether it's in a valid location.
- Suppress some later errors and MIR construction for invalid let expressions.
- Fix a (drop) scope issue that was also responsible for #104172.

Fixes #104172
Fixes #104868
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions