@@ -916,6 +916,7 @@ impl AtomicBool {
916
916
/// ```ignore (extern-declaration)
917
917
/// # fn main() {
918
918
/// use std::sync::atomic::AtomicBool;
919
+ ///
919
920
/// extern "C" {
920
921
/// fn my_atomic_op(arg: *mut bool);
921
922
/// }
@@ -927,7 +928,8 @@ impl AtomicBool {
927
928
/// # }
928
929
/// ```
929
930
#[ 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" ) ]
931
933
pub const fn as_ptr ( & self ) -> * mut bool {
932
934
self . v . get ( ) . cast ( )
933
935
}
@@ -1802,7 +1804,6 @@ impl<T> AtomicPtr<T> {
1802
1804
/// # Examples
1803
1805
///
1804
1806
/// ```ignore (extern-declaration)
1805
- /// #![feature(atomic_mut_ptr)]
1806
1807
/// use std::sync::atomic::AtomicPtr;
1807
1808
///
1808
1809
/// extern "C" {
@@ -1818,7 +1819,8 @@ impl<T> AtomicPtr<T> {
1818
1819
/// }
1819
1820
/// ```
1820
1821
#[ 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" ) ]
1822
1824
pub const fn as_ptr ( & self ) -> * mut * mut T {
1823
1825
self . p . get ( )
1824
1826
}
@@ -2724,9 +2726,8 @@ macro_rules! atomic_int {
2724
2726
/// # }
2725
2727
/// ```
2726
2728
#[ 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" ) ]
2730
2731
pub const fn as_ptr( & self ) -> * mut $int_type {
2731
2732
self . v. get( )
2732
2733
}
0 commit comments