about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-29 10:17:10 +0100
committerGitHub <noreply@github.com>2021-12-29 10:17:10 +0100
commitf044c6c86ccfc517ba336c6a5f45b7d1c1e1b2f2 (patch)
tree254a8dd40ec4f7367bcaf51f75ac9e0ee7ff4709 /compiler/rustc_codegen_llvm/src
parentbee14712ab2993c0c6a8af9c72dbfa9b149b7f8d (diff)
parentb1529a680a9a593bd0cb01502dc86b7d0e3ee28d (diff)
downloadrust-f044c6c86ccfc517ba336c6a5f45b7d1c1e1b2f2.tar.gz
rust-f044c6c86ccfc517ba336c6a5f45b7d1c1e1b2f2.zip
Rollup merge of #92237 - compiler-errors:issue-92100, r=cjgillot
Visit expressions in-order when resolving pattern bindings

[edited:] Visit the pattern's sub-expressions before defining any bindings.

Otherwise, we might get into a case where a Lit/Range expression in a pattern has a qpath pointing to a Ident pattern that is defined after it, causing an ICE when lowering to HIR. I have a more detailed explanation in the issue linked.

Fixes #92100
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions