mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-05 06:27:38 +00:00
![]() 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` |
||
---|---|---|
.. | ||
lexer | ||
parser | ||
lib.rs | ||
validate_attr.rs |