about summary refs log tree commit diff
path: root/compiler/rustc_query_system
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-02-21 08:37:10 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-02-21 08:38:24 +0000
commitdecfb4d123651a0673db47542e18ca60d1c501ac (patch)
treecdfb83b31154c07755eaf21b97fa51ddfe01e64f /compiler/rustc_query_system
parenta04e78730e501de7147ba8c09372348529b00c17 (diff)
downloadrust-decfb4d123651a0673db47542e18ca60d1c501ac.tar.gz
rust-decfb4d123651a0673db47542e18ca60d1c501ac.zip
Use a lock-free datastructure for `source_span`
Diffstat (limited to 'compiler/rustc_query_system')
-rw-r--r--compiler/rustc_query_system/src/ich/hcx.rs2
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]