@@ -916,6 +916,7 @@ impl AtomicBool {
916916 /// ```ignore (extern-declaration)
917917 /// # fn main() {
918918 /// use std::sync::atomic::AtomicBool;
919+ ///
919920 /// extern "C" {
920921 /// fn my_atomic_op(arg: *mut bool);
921922 /// }
@@ -927,7 +928,8 @@ impl AtomicBool {
927928 /// # }
928929 /// ```
929930 #[ inline]
930- #[ unstable( feature = "atomic_mut_ptr" , reason = "recently added" , issue = "66893" ) ]
931+ #[ stable( feature = "atomic_as_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
932+ #[ rustc_const_stable( feature = "atomic_as_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
931933 pub const fn as_ptr ( & self ) -> * mut bool {
932934 self . v . get ( ) . cast ( )
933935 }
@@ -1802,7 +1804,6 @@ impl<T> AtomicPtr<T> {
18021804 /// # Examples
18031805 ///
18041806 /// ```ignore (extern-declaration)
1805- /// #![feature(atomic_mut_ptr)]
18061807 /// use std::sync::atomic::AtomicPtr;
18071808 ///
18081809 /// extern "C" {
@@ -1818,7 +1819,8 @@ impl<T> AtomicPtr<T> {
18181819 /// }
18191820 /// ```
18201821 #[ inline]
1821- #[ unstable( feature = "atomic_mut_ptr" , reason = "recently added" , issue = "66893" ) ]
1822+ #[ stable( feature = "atomic_as_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
1823+ #[ rustc_const_stable( feature = "atomic_as_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
18221824 pub const fn as_ptr ( & self ) -> * mut * mut T {
18231825 self . p . get ( )
18241826 }
@@ -2724,9 +2726,8 @@ macro_rules! atomic_int {
27242726 /// # }
27252727 /// ```
27262728 #[ inline]
2727- #[ unstable( feature = "atomic_mut_ptr" ,
2728- reason = "recently added" ,
2729- issue = "66893" ) ]
2729+ #[ stable( feature = "atomic_as_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
2730+ #[ rustc_const_stable( feature = "atomic_as_ptr" , since = "CURRENT_RUSTC_VERSION" ) ]
27302731 pub const fn as_ptr( & self ) -> * mut $int_type {
27312732 self . v. get( )
27322733 }
0 commit comments