Skip to content

Commit

Permalink
Auto merge of #115677 - matthewjasper:let-expr-recovery, r=b-naber
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Sep 14, 2023
2 parents 3563f9c + 47fe0a3 commit 636408e
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 636408e

Please sign in to comment.