diff options
| author | The Miri Conjob Bot <miri@cron.bot> | 2023-09-27 05:48:00 +0000 |
|---|---|---|
| committer | The Miri Conjob Bot <miri@cron.bot> | 2023-09-27 05:48:00 +0000 |
| commit | b1f5c6683bb38da2cef8d1aa3fb3f88c357d4ae4 (patch) | |
| tree | f8a0d9b55658cff808aa5a8fd51d468c446ef950 /compiler/rustc_data_structures/src/sync | |
| parent | fc0d833f6fb9876c367bb738927525102e5761a7 (diff) | |
| parent | 085acd02d4abaf2ccaf629134caa83cfe23283c8 (diff) | |
| download | rust-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.rs | 8 |
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")) } } } |
