diff options
| author | bors <bors@rust-lang.org> | 2023-09-27 06:51:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-27 06:51:43 +0000 |
| commit | 1a3dd7ea7d929db798b7095d3c25f50b49a52fb4 (patch) | |
| tree | 69c3f1ea1b4d8aab2e857ca1604cfe6bbdff7d2f /compiler/rustc_data_structures/src/sync | |
| parent | e86c68aa545fc3cfa5085811590e52011ed1a602 (diff) | |
| parent | c8a44b1eaf5aed5cf8e57340f1ac56c9bad08acf (diff) | |
| download | rust-1a3dd7ea7d929db798b7095d3c25f50b49a52fb4.tar.gz rust-1a3dd7ea7d929db798b7095d3c25f50b49a52fb4.zip | |
Auto merge of #3087 - rust-lang:rustup-2023-09-27, r=RalfJung
Automatic sync 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")) } } } |
