about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-02 07:30:44 +0200
committerGitHub <noreply@github.com>2022-08-02 07:30:44 +0200
commitbeb4cdddde0421710d548da5a847efec0d515343 (patch)
treeb0aa4b5648013b2ffa7bc14cbe6731fd5f499769 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent17f76a16f9379aaf10c656e23a2d132fcb17a751 (diff)
parent6be7a87f9ccc4ead6887d2cc7231f44df3673681 (diff)
downloadrust-beb4cdddde0421710d548da5a847efec0d515343.tar.gz
rust-beb4cdddde0421710d548da5a847efec0d515343.zip
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`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions