diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-05-10 14:15:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-10 14:15:50 +0000 |
| commit | 5262ab24164d03733ce15ef06deee2512ea7d758 (patch) | |
| tree | 618dfa121482471ef36e36c99759bf3511994667 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 3c5e403824746633137bf70522cd228356f54cc3 (diff) | |
| parent | e61886a6d9e510079582cbd11cb00a1c88941cca (diff) | |
| download | rust-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
