diff options
| author | Askar Safin <safinaskar@mail.ru> | 2025-02-11 08:25:50 +0300 |
|---|---|---|
| committer | Askar Safin <safinaskar@mail.ru> | 2025-02-11 08:28:28 +0300 |
| commit | 8f684c9db7092d8a0c924ba63b967db021ab9860 (patch) | |
| tree | 33fbd89db912103e7ed7a5a1ea7e97a0ecf35122 /compiler/rustc_data_structures/src/sync.rs | |
| parent | c9c7b44510425c2d594ee0b6653e68a2aead3b6d (diff) | |
| download | rust-8f684c9db7092d8a0c924ba63b967db021ab9860.tar.gz rust-8f684c9db7092d8a0c924ba63b967db021ab9860.zip | |
compiler/rustc_data_structures/src/sync.rs: delete Weak
Diffstat (limited to 'compiler/rustc_data_structures/src/sync.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index 6ea7360bced..37f2e1f096e 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -18,7 +18,6 @@ //! //! | Type | Serial version | Parallel version | //! | ----------------------- | ------------------- | ------------------------------- | -//! |` Weak<T>` | `rc::Weak<T>` | `sync::Weak<T>` | //! | `LRef<'a, T>` [^2] | `&'a mut T` | `&'a T` | //! | | | | //! | `AtomicBool` | `Cell<bool>` | `atomic::AtomicBool` | @@ -104,11 +103,11 @@ mod mode { // FIXME(parallel_compiler): Get rid of these aliases across the compiler. pub use std::marker::{Send, Sync}; +pub use std::sync::OnceLock; // Use portable AtomicU64 for targets without native 64-bit atomics #[cfg(target_has_atomic = "64")] pub use std::sync::atomic::AtomicU64; pub use std::sync::atomic::{AtomicBool, AtomicU32, AtomicUsize}; -pub use std::sync::{OnceLock, Weak}; pub use mode::{is_dyn_thread_safe, set_dyn_thread_safe_mode}; pub use parking_lot::{ |
