@@ -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 ( ) }
@@ -1115,7 +1115,7 @@ impl<T> AtomicPtr<T> {
1115
1115
/// # Examples
1116
1116
///
1117
1117
/// ```
1118
- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
1118
+ /// #![feature(pointer_is_aligned)]
1119
1119
/// use std::sync::atomic::{self, AtomicPtr};
1120
1120
/// use std::mem::align_of;
1121
1121
///
@@ -1150,8 +1150,8 @@ impl<T> AtomicPtr<T> {
1150
1150
/// thread).
1151
1151
///
1152
1152
/// [valid]: crate::ptr#safety
1153
- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
1154
- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
1153
+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
1154
+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
1155
1155
pub const unsafe fn from_ptr < ' a > ( ptr : * mut * mut T ) -> & ' a AtomicPtr < T > {
1156
1156
// SAFETY: guaranteed by the caller
1157
1157
unsafe { & * ptr. cast ( ) }
@@ -2087,7 +2087,7 @@ macro_rules! atomic_int {
2087
2087
/// # Examples
2088
2088
///
2089
2089
/// ```
2090
- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
2090
+ /// #![feature(pointer_is_aligned)]
2091
2091
#[ doc = concat!( $extra_feature, "use std::sync::atomic::{self, " , stringify!( $atomic_type) , "};" ) ]
2092
2092
/// use std::mem::align_of;
2093
2093
///
@@ -2124,8 +2124,8 @@ macro_rules! atomic_int {
2124
2124
/// is used in a `Sync` context (e.g. read or modified in a different thread).
2125
2125
///
2126
2126
/// [valid]: crate::ptr#safety
2127
- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
2128
- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
2127
+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
2128
+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
2129
2129
pub const unsafe fn from_ptr<' a>( ptr: * mut $int_type) -> & ' a $atomic_type {
2130
2130
// SAFETY: guaranteed by the caller
2131
2131
unsafe { & * ptr. cast( ) }
0 commit comments