diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-03-09 18:04:39 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-03-09 18:04:39 +0100 |
| commit | 2b5b43eeb90fb10e0fa28e74157bf7c21f9a33ca (patch) | |
| tree | 521778a300c67f86def2b55b72a672c8d6cbd890 /compiler/rustc_data_structures/src | |
| parent | 379908ef4e61a4d813ecda3e67851d475ef2540e (diff) | |
| parent | b054da815501bafb24a08284151d32862f7a3a13 (diff) | |
| download | rust-2b5b43eeb90fb10e0fa28e74157bf7c21f9a33ca.tar.gz rust-2b5b43eeb90fb10e0fa28e74157bf7c21f9a33ca.zip | |
Merge remote-tracking branch 'upstream/master' into HEAD
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync/worker_local.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sync/worker_local.rs b/compiler/rustc_data_structures/src/sync/worker_local.rs index 50a614a1b02..07a361ba260 100644 --- a/compiler/rustc_data_structures/src/sync/worker_local.rs +++ b/compiler/rustc_data_structures/src/sync/worker_local.rs @@ -42,7 +42,7 @@ pub struct Registry(Arc<RegistryData>); thread_local! { /// The registry associated with the thread. /// This allows the `WorkerLocal` type to clone the registry in its constructor. - static REGISTRY: OnceCell<Registry> = OnceCell::new(); + static REGISTRY: OnceCell<Registry> = const { OnceCell::new() }; } struct ThreadData { |
