@@ -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
///
@@ -351,8 +351,8 @@ impl AtomicBool {
351
351
/// * The value behind `ptr` must not be accessed through non-atomic operations for the whole lifetime `'a`.
352
352
///
353
353
/// [valid]: crate::ptr#safety
354
- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
355
- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
354
+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
355
+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
356
356
pub const unsafe fn from_ptr < ' a > ( ptr : * mut bool ) -> & ' a AtomicBool {
357
357
// SAFETY: guaranteed by the caller
358
358
unsafe { & * ptr. cast ( ) }
@@ -1112,7 +1112,7 @@ impl<T> AtomicPtr<T> {
1112
1112
/// # Examples
1113
1113
///
1114
1114
/// ```
1115
- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
1115
+ /// #![feature(pointer_is_aligned)]
1116
1116
/// use std::sync::atomic::{self, AtomicPtr};
1117
1117
/// use std::mem::align_of;
1118
1118
///
@@ -1144,8 +1144,8 @@ impl<T> AtomicPtr<T> {
1144
1144
/// * The value behind `ptr` must not be accessed through non-atomic operations for the whole lifetime `'a`.
1145
1145
///
1146
1146
/// [valid]: crate::ptr#safety
1147
- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
1148
- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
1147
+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
1148
+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
1149
1149
pub const unsafe fn from_ptr < ' a > ( ptr : * mut * mut T ) -> & ' a AtomicPtr < T > {
1150
1150
// SAFETY: guaranteed by the caller
1151
1151
unsafe { & * ptr. cast ( ) }
@@ -2081,7 +2081,7 @@ macro_rules! atomic_int {
2081
2081
/// # Examples
2082
2082
///
2083
2083
/// ```
2084
- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
2084
+ /// #![feature(pointer_is_aligned)]
2085
2085
#[ doc = concat!( $extra_feature, "use std::sync::atomic::{self, " , stringify!( $atomic_type) , "};" ) ]
2086
2086
/// use std::mem::align_of;
2087
2087
///
@@ -2114,8 +2114,8 @@ macro_rules! atomic_int {
2114
2114
/// * The value behind `ptr` must not be accessed through non-atomic operations for the whole lifetime `'a`.
2115
2115
///
2116
2116
/// [valid]: crate::ptr#safety
2117
- #[ unstable ( feature = "atomic_from_ptr" , issue = "108652 " ) ]
2118
- #[ rustc_const_unstable( feature = "atomic_from_ptr " , issue = "108652" ) ]
2117
+ #[ stable ( feature = "atomic_from_ptr" , since = "CURRENT_RUSTC_VERSION " ) ]
2118
+ #[ rustc_const_unstable( feature = "const_atomic_from_ptr " , issue = "108652" ) ]
2119
2119
pub const unsafe fn from_ptr<' a>( ptr: * mut $int_type) -> & ' a $atomic_type {
2120
2120
// SAFETY: guaranteed by the caller
2121
2121
unsafe { & * ptr. cast( ) }
0 commit comments