@@ -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
///
@@ -359,8 +359,8 @@ impl AtomicBool {
359
359
/// from the same thread.
360
360
///
361
361
/// [valid]: crate::ptr#safety
362
- #[unstable (feature = "atomic_from_ptr", issue = "108652 ")]
363
- #[rustc_const_unstable(feature = "atomic_from_ptr ", issue = "108652")]
362
+ #[stable (feature = "atomic_from_ptr", since = "CURRENT_RUSTC_VERSION ")]
363
+ #[rustc_const_unstable(feature = "const_atomic_from_ptr ", issue = "108652")]
364
364
pub const unsafe fn from_ptr<'a>(ptr: *mut bool) -> &'a AtomicBool {
365
365
// SAFETY: guaranteed by the caller
366
366
unsafe { &*ptr.cast() }
@@ -1121,7 +1121,7 @@ impl<T> AtomicPtr<T> {
1121
1121
/// # Examples
1122
1122
///
1123
1123
/// ```
1124
- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
1124
+ /// #![feature(pointer_is_aligned)]
1125
1125
/// use std::sync::atomic::{self, AtomicPtr};
1126
1126
/// use std::mem::align_of;
1127
1127
///
@@ -1163,8 +1163,8 @@ impl<T> AtomicPtr<T> {
1163
1163
/// these are not supported by the memory model.
1164
1164
///
1165
1165
/// [valid]: crate::ptr#safety
1166
- #[unstable (feature = "atomic_from_ptr", issue = "108652 ")]
1167
- #[rustc_const_unstable(feature = "atomic_from_ptr ", issue = "108652")]
1166
+ #[stable (feature = "atomic_from_ptr", since = "CURRENT_RUSTC_VERSION ")]
1167
+ #[rustc_const_unstable(feature = "const_atomic_from_ptr ", issue = "108652")]
1168
1168
pub const unsafe fn from_ptr<'a>(ptr: *mut *mut T) -> &'a AtomicPtr<T> {
1169
1169
// SAFETY: guaranteed by the caller
1170
1170
unsafe { &*ptr.cast() }
@@ -2101,7 +2101,7 @@ macro_rules! atomic_int {
2101
2101
/// # Examples
2102
2102
///
2103
2103
/// ```
2104
- /// #![feature(atomic_from_ptr, pointer_is_aligned)]
2104
+ /// #![feature(pointer_is_aligned)]
2105
2105
#[doc = concat!($extra_feature, "use std::sync::atomic::{self, ", stringify!($atomic_type), "};")]
2106
2106
/// use std::mem::align_of;
2107
2107
///
@@ -2146,8 +2146,8 @@ macro_rules! atomic_int {
2146
2146
/// accesses, as these are not supported by the memory model.
2147
2147
///
2148
2148
/// [valid]: crate::ptr#safety
2149
- #[unstable (feature = "atomic_from_ptr", issue = "108652 ")]
2150
- #[rustc_const_unstable(feature = "atomic_from_ptr ", issue = "108652")]
2149
+ #[stable (feature = "atomic_from_ptr", since = "CURRENT_RUSTC_VERSION ")]
2150
+ #[rustc_const_unstable(feature = "const_atomic_from_ptr ", issue = "108652")]
2151
2151
pub const unsafe fn from_ptr<'a>(ptr: *mut $int_type) -> &'a $atomic_type {
2152
2152
// SAFETY: guaranteed by the caller
2153
2153
unsafe { &*ptr.cast() }
0 commit comments