Skip to content

Commit fc5644d

Browse files
CAD97GrigorenkoPV
authored andcommitted
name ATOMIC_INIT without unstable alias
1 parent b117803 commit fc5644d

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 {
@@ -3769,7 +3769,7 @@ macro_rules! atomic_int_ptr_sized {
37693769
note = "the `new` function is now preferred",
37703770
suggestion = "AtomicIsize::new(0)",
37713771
)]
3772-
pub const ATOMIC_ISIZE_INIT: Atomic<isize> = AtomicIsize::new(0);
3772+
pub const ATOMIC_ISIZE_INIT: AtomicIsize = AtomicIsize::new(0);
37733773

37743774
/// An [`AtomicUsize`] initialized to `0`.
37753775
#[cfg(target_pointer_width = $target_pointer_width)]
@@ -3779,7 +3779,7 @@ macro_rules! atomic_int_ptr_sized {
37793779
note = "the `new` function is now preferred",
37803780
suggestion = "AtomicUsize::new(0)",
37813781
)]
3782-
pub const ATOMIC_USIZE_INIT: Atomic<usize> = AtomicUsize::new(0);
3782+
pub const ATOMIC_USIZE_INIT: AtomicUsize = AtomicUsize::new(0);
37833783
)* };
37843784
}
37853785

0 commit comments

Comments
 (0)