Skip to content

Commit b55c4f2

Browse files
CAD97GrigorenkoPV
authored andcommitted
name ATOMIC_INIT without unstable alias
1 parent 3446413 commit b55c4f2

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
@@ -501,7 +501,7 @@ pub enum Ordering {
501501
note = "the `new` function is now preferred",
502502
suggestion = "AtomicBool::new(false)"
503503
)]
504-
pub const ATOMIC_BOOL_INIT: Atomic<bool> = AtomicBool::new(false);
504+
pub const ATOMIC_BOOL_INIT: AtomicBool = AtomicBool::new(false);
505505

506506
#[cfg(target_has_atomic_load_store = "8")]
507507
impl AtomicBool {
@@ -3750,7 +3750,7 @@ macro_rules! atomic_int_ptr_sized {
37503750
note = "the `new` function is now preferred",
37513751
suggestion = "AtomicIsize::new(0)",
37523752
)]
3753-
pub const ATOMIC_ISIZE_INIT: Atomic<isize> = AtomicIsize::new(0);
3753+
pub const ATOMIC_ISIZE_INIT: AtomicIsize = AtomicIsize::new(0);
37543754

37553755
/// An [`AtomicUsize`] initialized to `0`.
37563756
#[cfg(target_pointer_width = $target_pointer_width)]
@@ -3760,7 +3760,7 @@ macro_rules! atomic_int_ptr_sized {
37603760
note = "the `new` function is now preferred",
37613761
suggestion = "AtomicUsize::new(0)",
37623762
)]
3763-
pub const ATOMIC_USIZE_INIT: Atomic<usize> = AtomicUsize::new(0);
3763+
pub const ATOMIC_USIZE_INIT: AtomicUsize = AtomicUsize::new(0);
37643764
)* };
37653765
}
37663766

0 commit comments

Comments
 (0)