diff options
| author | Christopher Durham <cad97@cad97.com> | 2024-09-22 19:39:00 -0400 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2025-04-27 02:18:08 +0300 |
| commit | 652998ba269a39a3a951bc47b67aae3e8b1998f9 (patch) | |
| tree | b3ed524748039c9bead5629b5af53ec3f2496097 | |
| parent | 4d93f6056824c338751f19356d33bb61ce818749 (diff) | |
| download | rust-652998ba269a39a3a951bc47b67aae3e8b1998f9.tar.gz rust-652998ba269a39a3a951bc47b67aae3e8b1998f9.zip | |
name ATOMIC_INIT without unstable alias
| -rw-r--r-- | library/core/src/sync/atomic.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 281ad16dff5..bf7251172e0 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -502,7 +502,7 @@ pub enum Ordering { note = "the `new` function is now preferred", suggestion = "AtomicBool::new(false)" )] -pub const ATOMIC_BOOL_INIT: Atomic<bool> = AtomicBool::new(false); +pub const ATOMIC_BOOL_INIT: AtomicBool = AtomicBool::new(false); #[cfg(target_has_atomic_load_store = "8")] impl AtomicBool { @@ -3772,7 +3772,7 @@ macro_rules! atomic_int_ptr_sized { note = "the `new` function is now preferred", suggestion = "AtomicIsize::new(0)", )] - pub const ATOMIC_ISIZE_INIT: Atomic<isize> = AtomicIsize::new(0); + pub const ATOMIC_ISIZE_INIT: AtomicIsize = AtomicIsize::new(0); /// An [`AtomicUsize`] initialized to `0`. #[cfg(target_pointer_width = $target_pointer_width)] @@ -3782,7 +3782,7 @@ macro_rules! atomic_int_ptr_sized { note = "the `new` function is now preferred", suggestion = "AtomicUsize::new(0)", )] - pub const ATOMIC_USIZE_INIT: Atomic<usize> = AtomicUsize::new(0); + pub const ATOMIC_USIZE_INIT: AtomicUsize = AtomicUsize::new(0); )* }; } |
