diff options
| author | bors <bors@rust-lang.org> | 2023-02-16 07:15:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-16 07:15:13 +0000 |
| commit | 4b34c7b766a3d64d3f2a9bff06d0e53648a11013 (patch) | |
| tree | 72039eb3b08ba4ce8048c09ff53f0f4139eb1a76 /compiler/rustc_query_system/src | |
| parent | 639377ed737b25830ec44dc6acf93467c980316a (diff) | |
| parent | bb1e9846b26663e5a504d1293a6c14b1aef9b487 (diff) | |
| download | rust-4b34c7b766a3d64d3f2a9bff06d0e53648a11013.tar.gz rust-4b34c7b766a3d64d3f2a9bff06d0e53648a11013.zip | |
Auto merge of #108116 - Dylan-DPC:rollup-h3n2vxl, r=Dylan-DPC
Rollup of 6 pull requests Successful merges: - #106372 (Use id-based thread parking on SOLID) - #108050 (Fix index out of bounds ICE in `point_at_expr_source_of_inferred_type`) - #108084 (Constify `RangeBounds`, `RangeX::contains` and `RangeX::is_empty` (where applicable).) - #108101 (don't clone types that are copy) - #108102 (simplify some refs) - #108103 (be nice and don't slice) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_query_system/src')
| -rw-r--r-- | compiler/rustc_query_system/src/query/caches.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/query/caches.rs b/compiler/rustc_query_system/src/query/caches.rs index c9dd75e4d55..81c7e4673d4 100644 --- a/compiler/rustc_query_system/src/query/caches.rs +++ b/compiler/rustc_query_system/src/query/caches.rs @@ -92,7 +92,7 @@ where let mut lock = self.cache.lock(); // We may be overwriting another value. This is all right, since the dep-graph // will check that the fingerprint matches. - lock.insert(key, (value.clone(), index)); + lock.insert(key, (value, index)); value } @@ -153,7 +153,7 @@ where #[inline] fn complete(&self, _key: (), value: V, index: DepNodeIndex) -> Self::Stored { - *self.cache.lock() = Some((value.clone(), index)); + *self.cache.lock() = Some((value, index)); value } @@ -283,7 +283,7 @@ where let mut lock = self.cache.get_shard_by_hash(key.index() as u64).lock(); #[cfg(not(parallel_compiler))] let mut lock = self.cache.lock(); - lock.insert(key, (value.clone(), index)); + lock.insert(key, (value, index)); value } |
