diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-04-19 18:11:57 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2025-04-20 18:58:46 +0200 |
| commit | de9323973a4dd9e76fadd250c2ac13ecddb4374c (patch) | |
| tree | 46c8fa320805ca9d0675dac609a181714e568bb5 /compiler/rustc_mir_build/src/builder/scope.rs | |
| parent | 49e5e4e3a5610c240a717cb99003a5d5d3356679 (diff) | |
| download | rust-de9323973a4dd9e76fadd250c2ac13ecddb4374c.tar.gz rust-de9323973a4dd9e76fadd250c2ac13ecddb4374c.zip | |
remove a couple clones
Diffstat (limited to 'compiler/rustc_mir_build/src/builder/scope.rs')
| -rw-r--r-- | compiler/rustc_mir_build/src/builder/scope.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/builder/scope.rs b/compiler/rustc_mir_build/src/builder/scope.rs index e42336a1dbb..4e4b11b8fa6 100644 --- a/compiler/rustc_mir_build/src/builder/scope.rs +++ b/compiler/rustc_mir_build/src/builder/scope.rs @@ -1530,7 +1530,7 @@ fn build_scope_drops<'tcx>( // path, then don't generate the drop. (We only take this into // account for non-unwind paths so as not to disturb the // caching mechanism.) - if scope.moved_locals.iter().any(|&o| o == local) { + if scope.moved_locals.contains(&local) { continue; } |
