File tree 2 files changed +1
-3
lines changed
compiler/rustc_data_structures/src
src/doc/rustc-dev-guide/src
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 18
18
//!
19
19
//! | Type | Serial version | Parallel version |
20
20
//! | ----------------------- | ------------------- | ------------------------------- |
21
- //! |` Weak<T>` | `rc::Weak<T>` | `sync::Weak<T>` |
22
21
//! | `LRef<'a, T>` [^2] | `&'a mut T` | `&'a T` |
23
22
//! | | | |
24
23
//! | `AtomicBool` | `Cell<bool>` | `atomic::AtomicBool` |
@@ -104,11 +103,11 @@ mod mode {
104
103
// FIXME(parallel_compiler): Get rid of these aliases across the compiler.
105
104
106
105
pub use std:: marker:: { Send , Sync } ;
106
+ pub use std:: sync:: OnceLock ;
107
107
// Use portable AtomicU64 for targets without native 64-bit atomics
108
108
#[ cfg( target_has_atomic = "64" ) ]
109
109
pub use std:: sync:: atomic:: AtomicU64 ;
110
110
pub use std:: sync:: atomic:: { AtomicBool , AtomicU32 , AtomicUsize } ;
111
- pub use std:: sync:: { OnceLock , Weak } ;
112
111
113
112
pub use mode:: { is_dyn_thread_safe, set_dyn_thread_safe_mode} ;
114
113
pub use parking_lot:: {
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ are implemented differently depending on whether `parallel-compiler` is true.
46
46
47
47
| data structure | parallel | non-parallel |
48
48
| -------------------------------- | --------------------------------------------------- | ------------ |
49
- | Weak | std::sync::Weak | std::rc::Weak |
50
49
| Atomic{Bool}/{Usize}/{U32}/{U64} | std::sync::atomic::Atomic{Bool}/{Usize}/{U32}/{U64} | (std::cell::Cell<bool/usize/u32/u64>) |
51
50
| OnceCell | std::sync::OnceLock | std::cell::OnceCell |
52
51
| Lock\< T> | (parking_lot::Mutex\< T>) | (std::cell::RefCell) |
You can’t perform that action at this time.
0 commit comments