diff options
| author | Ralf Jung <post@ralfj.de> | 2024-10-12 12:14:28 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-10-12 12:14:28 +0200 |
| commit | bc4366b099e7a4d115650dcfec4aeeb62bfc3c54 (patch) | |
| tree | 92ba4772f5a6ab5b71497008b782d817d431f6af /compiler/rustc_const_eval/src/const_eval | |
| parent | fb20e4d3b96d1de459d086980a8b99d5060ad9fe (diff) | |
| download | rust-bc4366b099e7a4d115650dcfec4aeeb62bfc3c54.tar.gz rust-bc4366b099e7a4d115650dcfec4aeeb62bfc3c54.zip | |
miri: avoid cloning AllocExtra
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/const_eval/machine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs index 4aec74595bc..2db43a0f787 100644 --- a/compiler/rustc_const_eval/src/const_eval/machine.rs +++ b/compiler/rustc_const_eval/src/const_eval/machine.rs @@ -140,7 +140,7 @@ impl<K: Hash + Eq, V> interpret::AllocMap<K, V> for FxIndexMap<K, V> { #[inline(always)] fn filter_map_collect<T>(&self, mut f: impl FnMut(&K, &V) -> Option<T>) -> Vec<T> { - self.iter().filter_map(move |(k, v)| f(k, &*v)).collect() + self.iter().filter_map(move |(k, v)| f(k, v)).collect() } #[inline(always)] |
