about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-06-03 07:03:44 +0200
committerGitHub <noreply@github.com>2025-06-03 07:03:44 +0200
commit69ebe39cea847604aa89c4d3776d9258a3a78005 (patch)
tree1640453b17bd40ab1e9bb4d4e8cd5783183466d3 /compiler/rustc_interface/src
parent6a5459e18664d68fd3375087a14d793761e36f93 (diff)
parent4a803d26ead24aa9cfdba3717fe2e9ffdc41f0e0 (diff)
downloadrust-69ebe39cea847604aa89c4d3776d9258a3a78005.tar.gz
rust-69ebe39cea847604aa89c4d3776d9258a3a78005.zip
Rollup merge of #141876 - compiler-errors:missing-let-ty, r=SparrowLii
Don't declare variables in `ExprKind::Let` in invalid positions

Handle `let` expressions in invalid positions specially during resolve in order to avoid making destructuring-assignment expressions that reference (invalid) variables that have not yet been delcared yet.

See further explanation in test and comment in the source.

Fixes rust-lang/rust#141844
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions