diff options
| author | bors <bors@rust-lang.org> | 2023-02-22 08:44:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-22 08:44:30 +0000 |
| commit | bd4a96a12d0bf6dc12edf20a45df3a33052c9d7d (patch) | |
| tree | ed3ba2827ca35cc6c3da1d26b1de65fc63799745 /compiler/rustc_query_system | |
| parent | f9216b75646cde0c4c69ae00232778a47fc893d3 (diff) | |
| parent | decfb4d123651a0673db47542e18ca60d1c501ac (diff) | |
| download | rust-bd4a96a12d0bf6dc12edf20a45df3a33052c9d7d.tar.gz rust-bd4a96a12d0bf6dc12edf20a45df3a33052c9d7d.zip | |
Auto merge of #108300 - oli-obk:elsa, r=eholk
Use a lock-free datastructure for source_span follow up to the perf regression in https://github.com/rust-lang/rust/pull/105462 The main regression is likely the CStore, but let's evaluate the perf impact of this on its own
Diffstat (limited to 'compiler/rustc_query_system')
| -rw-r--r-- | compiler/rustc_query_system/src/ich/hcx.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/ich/hcx.rs b/compiler/rustc_query_system/src/ich/hcx.rs index 8db8ee9428b..5593a15412f 100644 --- a/compiler/rustc_query_system/src/ich/hcx.rs +++ b/compiler/rustc_query_system/src/ich/hcx.rs @@ -146,7 +146,7 @@ impl<'a> rustc_span::HashStableContext for StableHashingContext<'a> { #[inline] fn def_span(&self, def_id: LocalDefId) -> Span { - *self.untracked.source_span.read().get(def_id).unwrap_or(&DUMMY_SP) + self.untracked.source_span.get(def_id).unwrap_or(DUMMY_SP) } #[inline] |
