@@ -319,7 +319,7 @@ impl AtomicBool {
319319 /// # Examples
320320 ///
321321 /// ```
322- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
322+ /// #![feature(pointer_is_aligned)]
323323 /// use std::sync::atomic::{self, AtomicBool};
324324 /// use std::mem::align_of;
325325 ///
@@ -359,8 +359,8 @@ impl AtomicBool {
359359 /// from the same thread.
360360 ///
361361 /// [valid]: crate::ptr#safety
362- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
363- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
362+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
363+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
364364 pub const unsafe fn from_ptr < ' a > ( ptr : * mut bool ) -> & ' a AtomicBool {
365365 // SAFETY: guaranteed by the caller
366366 unsafe { & * ptr. cast ( ) }
@@ -1121,7 +1121,7 @@ impl<T> AtomicPtr<T> {
11211121 /// # Examples
11221122 ///
11231123 /// ```
1124- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
1124+ /// #![feature(pointer_is_aligned)]
11251125 /// use std::sync::atomic::{self, AtomicPtr};
11261126 /// use std::mem::align_of;
11271127 ///
@@ -1163,8 +1163,8 @@ impl<T> AtomicPtr<T> {
11631163 /// these are not supported by the memory model.
11641164 ///
11651165 /// [valid]: crate::ptr#safety
1166- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
1167- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
1166+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
1167+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
11681168 pub const unsafe fn from_ptr < ' a > ( ptr : * mut * mut T ) -> & ' a AtomicPtr < T > {
11691169 // SAFETY: guaranteed by the caller
11701170 unsafe { & * ptr. cast ( ) }
@@ -2101,7 +2101,7 @@ macro_rules! atomic_int {
21012101 /// # Examples
21022102 ///
21032103 /// ```
2104- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
2104+ /// #![feature(pointer_is_aligned)]
21052105 #[ doc = concat!( $extra_feature, "use std::sync::atomic::{self, " , stringify!( $atomic_type) , "};" ) ]
21062106 /// use std::mem::align_of;
21072107 ///
@@ -2146,8 +2146,8 @@ macro_rules! atomic_int {
21462146 /// accesses, as these are not supported by the memory model.
21472147 ///
21482148 /// [valid]: crate::ptr#safety
2149- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
2150- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
2149+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
2150+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
21512151 pub const unsafe fn from_ptr<' a>( ptr: * mut $int_type) -> & ' a $atomic_type {
21522152 // SAFETY: guaranteed by the caller
21532153 unsafe { & * ptr. cast( ) }
0 commit comments