Skip to content

Commit 8a5769d

Browse files
CAD97GrigorenkoPV
authored andcommitted
name ATOMIC_INIT without unstable alias
1 parent 996ff40 commit 8a5769d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/sync/atomic.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ pub enum Ordering {
502502
note = "the `new` function is now preferred",
503503
suggestion = "AtomicBool::new(false)"
504504
)]
505-
pub const ATOMIC_BOOL_INIT: Atomic<bool> = AtomicBool::new(false);
505+
pub const ATOMIC_BOOL_INIT: AtomicBool = AtomicBool::new(false);
506506

507507
#[cfg(target_has_atomic_load_store = "8")]
508508
impl AtomicBool {
@@ -3772,7 +3772,7 @@ macro_rules! atomic_int_ptr_sized {
37723772
note = "the `new` function is now preferred",
37733773
suggestion = "AtomicIsize::new(0)",
37743774
)]
3775-
pub const ATOMIC_ISIZE_INIT: Atomic<isize> = AtomicIsize::new(0);
3775+
pub const ATOMIC_ISIZE_INIT: AtomicIsize = AtomicIsize::new(0);
37763776

37773777
/// An [`AtomicUsize`] initialized to `0`.
37783778
#[cfg(target_pointer_width = $target_pointer_width)]
@@ -3782,7 +3782,7 @@ macro_rules! atomic_int_ptr_sized {
37823782
note = "the `new` function is now preferred",
37833783
suggestion = "AtomicUsize::new(0)",
37843784
)]
3785-
pub const ATOMIC_USIZE_INIT: Atomic<usize> = AtomicUsize::new(0);
3785+
pub const ATOMIC_USIZE_INIT: AtomicUsize = AtomicUsize::new(0);
37863786
)* };
37873787
}
37883788

0 commit comments

Comments
 (0)