diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-08 10:53:20 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-02-20 15:28:58 +0000 |
| commit | ade3dceb38c6e41e3b8623e252d9413052e3a0af (patch) | |
| tree | 8c3c14c9b87f01110fcabe47d1a9035bc3486526 /compiler/rustc_query_system | |
| parent | e8e227aec84ea8b19751d9dd851a10937a70810a (diff) | |
| download | rust-ade3dceb38c6e41e3b8623e252d9413052e3a0af.tar.gz rust-ade3dceb38c6e41e3b8623e252d9413052e3a0af.zip | |
Make untracked.cstore lockable so that resolution can still write to it when using TyCtxt
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 163da59edd5..91fc3fd222f 100644 --- a/compiler/rustc_query_system/src/ich/hcx.rs +++ b/compiler/rustc_query_system/src/ich/hcx.rs @@ -90,7 +90,7 @@ impl<'a> StableHashingContext<'a> { if let Some(def_id) = def_id.as_local() { self.local_def_path_hash(def_id) } else { - self.untracked.cstore.def_path_hash(def_id) + self.untracked.cstore.read().def_path_hash(def_id) } } |
