about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/sync
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2023-09-27 05:48:00 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2023-09-27 05:48:00 +0000
commitb1f5c6683bb38da2cef8d1aa3fb3f88c357d4ae4 (patch)
treef8a0d9b55658cff808aa5a8fd51d468c446ef950 /compiler/rustc_data_structures/src/sync
parentfc0d833f6fb9876c367bb738927525102e5761a7 (diff)
parent085acd02d4abaf2ccaf629134caa83cfe23283c8 (diff)
downloadrust-b1f5c6683bb38da2cef8d1aa3fb3f88c357d4ae4.tar.gz
rust-b1f5c6683bb38da2cef8d1aa3fb3f88c357d4ae4.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_data_structures/src/sync')
-rw-r--r--compiler/rustc_data_structures/src/sync/worker_local.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_data_structures/src/sync/worker_local.rs b/compiler/rustc_data_structures/src/sync/worker_local.rs
index 1f838cc4648..ffafdba13ce 100644
--- a/compiler/rustc_data_structures/src/sync/worker_local.rs
+++ b/compiler/rustc_data_structures/src/sync/worker_local.rs
@@ -6,7 +6,7 @@ use std::ptr;
 use std::sync::Arc;
 
 #[cfg(parallel_compiler)]
-use {crate::cold_path, crate::sync::CacheAligned};
+use {crate::outline, crate::sync::CacheAligned};
 
 /// A pointer to the `RegistryData` which uniquely identifies a registry.
 /// This identifier can be reused if the registry gets freed.
@@ -25,11 +25,7 @@ impl RegistryId {
     fn verify(self) -> usize {
         let (id, index) = THREAD_DATA.with(|data| (data.registry_id.get(), data.index.get()));
 
-        if id == self {
-            index
-        } else {
-            cold_path(|| panic!("Unable to verify registry association"))
-        }
+        if id == self { index } else { outline(|| panic!("Unable to verify registry association")) }
     }
 }