@@ -319,7 +319,7 @@ impl AtomicBool {
319
319
/// # Examples
320
320
///
321
321
/// ```
322
- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
322
+ /// #![feature(pointer_is_aligned)]
323
323
/// use std::sync::atomic::{self, AtomicBool};
324
324
/// use std::mem::align_of;
325
325
///
@@ -354,8 +354,8 @@ impl AtomicBool {
354
354
/// thread).
355
355
///
356
356
/// [valid]: crate::ptr#safety
357
- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
358
- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
357
+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
358
+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
359
359
pub const unsafe fn from_ptr < ' a > ( ptr : * mut bool ) -> & ' a AtomicBool {
360
360
// SAFETY: guaranteed by the caller
361
361
unsafe { & * ptr. cast ( ) }
@@ -1116,7 +1116,7 @@ impl<T> AtomicPtr<T> {
1116
1116
/// # Examples
1117
1117
///
1118
1118
/// ```
1119
- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
1119
+ /// #![feature(pointer_is_aligned)]
1120
1120
/// use std::sync::atomic::{self, AtomicPtr};
1121
1121
/// use std::mem::align_of;
1122
1122
///
@@ -1151,8 +1151,8 @@ impl<T> AtomicPtr<T> {
1151
1151
/// thread).
1152
1152
///
1153
1153
/// [valid]: crate::ptr#safety
1154
- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
1155
- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
1154
+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
1155
+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
1156
1156
pub const unsafe fn from_ptr < ' a > ( ptr : * mut * mut T ) -> & ' a AtomicPtr < T > {
1157
1157
// SAFETY: guaranteed by the caller
1158
1158
unsafe { & * ptr. cast ( ) }
@@ -2089,7 +2089,7 @@ macro_rules! atomic_int {
2089
2089
/// # Examples
2090
2090
///
2091
2091
/// ```
2092
- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
2092
+ /// #![feature(pointer_is_aligned)]
2093
2093
#[ doc = concat!( $extra_feature, "use std::sync::atomic::{self, " , stringify!( $atomic_type) , "};" ) ]
2094
2094
/// use std::mem::align_of;
2095
2095
///
@@ -2126,8 +2126,8 @@ macro_rules! atomic_int {
2126
2126
/// is used in a `Sync` context (e.g. read or modified in a different thread).
2127
2127
///
2128
2128
/// [valid]: crate::ptr#safety
2129
- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
2130
- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
2129
+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
2130
+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
2131
2131
pub const unsafe fn from_ptr<' a>( ptr: * mut $int_type) -> & ' a $atomic_type {
2132
2132
// SAFETY: guaranteed by the caller
2133
2133
unsafe { & * ptr. cast( ) }
0 commit comments