about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-05-10 14:15:50 +0000
committerGitHub <noreply@github.com>2025-05-10 14:15:50 +0000
commit5262ab24164d03733ce15ef06deee2512ea7d758 (patch)
tree618dfa121482471ef36e36c99759bf3511994667 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent3c5e403824746633137bf70522cd228356f54cc3 (diff)
parente61886a6d9e510079582cbd11cb00a1c88941cca (diff)
downloadrust-5262ab24164d03733ce15ef06deee2512ea7d758.tar.gz
rust-5262ab24164d03733ce15ef06deee2512ea7d758.zip
Fix `unnecessary_unwrap` emitted twice in closure (#14763) (#14770)
The problem is that `check_fn` is triggered by both function and
closure, and `visit_expr` can visit expressions in another closures
within a function or closure.

So just skip walking in a inner closure.

changelog: Fix [`unnecessary_unwrap`] emitted twice in closure which
inside in a function or another closure.

Fixes: rust-lang/rust-clippy#14763
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions