about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-26 17:17:07 +0000
committerbors <bors@rust-lang.org>2022-09-26 17:17:07 +0000
commit1d1f1426604b7d79138cdfbb31f82f7f44756fba (patch)
treeadee00e4b739b62ab829b2f352c95138ba412fd8 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parente1d7dec558d863fb76f98453088b36cb1a926d48 (diff)
parent73c52bc4dc8714a058854d113acd5e4a7c9c0785 (diff)
downloadrust-1d1f1426604b7d79138cdfbb31f82f7f44756fba.tar.gz
rust-1d1f1426604b7d79138cdfbb31f82f7f44756fba.zip
Auto merge of #102257 - cjgillot:let-else-lint, r=dingxiangfei2009
Fix lint scoping for let-else.

The scoping for let-else is inconsistent with HIR nesting.  This creates cases, in `ui/let-else/let-else-allow-unused.rs` for instance, where an `allow` lint attribute does not apply to the bindings created by `let-else`.

This PR is an attempt to correct this.

As there is no lint that currently relies on this, the test for this behaviour is https://github.com/rust-lang/rust/pull/101500.

cc `@dingxiangfei2009` as you filed https://github.com/rust-lang/rust/pull/101894
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions