diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-03-02 12:00:26 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-03-02 12:00:26 +0000 |
| commit | a2baba09a2d86db7915b899ea631c427bfe8c4e8 (patch) | |
| tree | 901b80bc1b03b23d355a38506967ec0ee00db919 /library/core/src/sync | |
| parent | 4a2c555904ad3ea89c5b4385ec99ade1378f3e7f (diff) | |
Fill-in tracking issue for `feature("atomic_from_ptr")`
Diffstat (limited to 'library/core/src/sync')
| -rw-r--r-- | library/core/src/sync/atomic.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 7ada26e1e15..040a59184a6 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -342,8 +342,8 @@ impl AtomicBool { /// * The value behind `ptr` must not be accessed through non-atomic operations for the whole lifetime `'a`. /// /// [valid]: crate::ptr#safety - #[unstable(feature = "atomic_from_ptr", issue = "none")] - #[rustc_const_unstable(feature = "atomic_from_ptr", issue = "none")] + #[unstable(feature = "atomic_from_ptr", issue = "108652")] + #[rustc_const_unstable(feature = "atomic_from_ptr", issue = "108652")] pub const unsafe fn from_ptr<'a>(ptr: *mut bool) -> &'a AtomicBool { // SAFETY: guaranteed by the caller unsafe { &*ptr.cast() } @@ -1098,8 +1098,8 @@ impl<T> AtomicPtr<T> { /// * The value behind `ptr` must not be accessed through non-atomic operations for the whole lifetime `'a`. /// /// [valid]: crate::ptr#safety - #[unstable(feature = "atomic_from_ptr", issue = "none")] - #[rustc_const_unstable(feature = "atomic_from_ptr", issue = "none")] + #[unstable(feature = "atomic_from_ptr", issue = "108652")] + #[rustc_const_unstable(feature = "atomic_from_ptr", issue = "108652")] pub const unsafe fn from_ptr<'a>(ptr: *mut *mut T) -> &'a AtomicPtr<T> { // SAFETY: guaranteed by the caller unsafe { &*ptr.cast() } @@ -2085,8 +2085,8 @@ macro_rules! atomic_int { /// * The value behind `ptr` must not be accessed through non-atomic operations for the whole lifetime `'a`. /// /// [valid]: crate::ptr#safety - #[unstable(feature = "atomic_from_ptr", issue = "none")] - #[rustc_const_unstable(feature = "atomic_from_ptr", issue = "none")] + #[unstable(feature = "atomic_from_ptr", issue = "108652")] + #[rustc_const_unstable(feature = "atomic_from_ptr", issue = "108652")] pub const unsafe fn from_ptr<'a>(ptr: *mut $int_type) -> &'a $atomic_type { // SAFETY: guaranteed by the caller unsafe { &*ptr.cast() } |
