Files
rust/compiler
Matthias Krüger f044c6c86c 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
2021-12-29 10:17:10 +01:00
..
2021-12-14 18:50:31 -04:00
2021-11-19 07:52:59 +11:00
2021-12-22 10:47:36 -06:00
2021-12-14 18:50:31 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-12-14 18:50:31 -04:00