about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/sync
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-09-25 03:27:25 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-09-25 22:54:07 +0200
commit2c507cae363a71f16069bbf602aa50e00f3ceec4 (patch)
treeeaca48d6359d6ed0547520221155d1b80c7e1a4e /compiler/rustc_data_structures/src/sync
parent91958e0a7417727a8b65c7f2c163677a8d4ec75d (diff)
downloadrust-2c507cae363a71f16069bbf602aa50e00f3ceec4.tar.gz
rust-2c507cae363a71f16069bbf602aa50e00f3ceec4.zip
Rename `cold_path` to `outline`
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")) }
     }
 }