rust/compiler/rustc_parse
Matthias Krüger beb4cdddde
Rollup merge of #100011 - compiler-errors:let-chain-restriction, r=fee1-dead
Use Parser's `restrictions` instead of `let_expr_allowed`

This also means that the `ALLOW_LET` flag is reset properly for subexpressions, so we can properly deny things like `a && (b && let c = d)`. Also the parser is a tiny bit smaller now.

It doesn't reject _all_ bad `let` expr usages, just a bit more.

cc `@c410-f3r`
2022-08-02 07:30:44 +02:00
..
src Rollup merge of #100011 - compiler-errors:let-chain-restriction, r=fee1-dead 2022-08-02 07:30:44 +02:00
Cargo.toml migrate ambiguous plus diagnostic 2022-04-25 22:55:15 +02:00