rust/compiler/rustc_parse/src/parser
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
..
attr.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
attr_wrapper.rs ast: Introduce some traits to get AST node properties generically 2022-05-11 12:43:27 +03:00
diagnostics.rs Add diagnostic when using public instead of pub 2022-07-29 19:21:30 +05:30
expr.rs Use expr parse restrictions for let expr parsing 2022-08-01 01:13:16 +00:00
generics.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
item.rs Auto merge of #99887 - nnethercote:rm-TreeAndSpacing, r=petrochenkov 2022-07-30 14:50:05 +00:00
mod.rs Rollup merge of #100011 - compiler-errors:let-chain-restriction, r=fee1-dead 2022-08-02 07:30:44 +02:00
nonterminal.rs ast: Introduce some traits to get AST node properties generically 2022-05-11 12:43:27 +03:00
pat.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00
path.rs Rollup merge of #95211 - terrarier2111:improve-parser, r=compiler-errors 2022-06-14 07:47:22 +09:00
stmt.rs Improve parsing errors and suggestions for bad if statements 2022-06-13 20:53:48 -07:00
ty.rs remove unnecessary to_string and String::new 2022-06-13 15:48:40 +09:00