Skip to content

Commit

Permalink
Add tracking issue number for atomic_from_mut.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Sep 5, 2020
1 parent 09fff5f commit 7cc2569
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/core/src/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ impl AtomicBool {
/// assert_eq!(some_bool, false);
/// ```
#[inline]
#[unstable(feature = "atomic_from_mut", issue = "none")]
#[unstable(feature = "atomic_from_mut", issue = "76314")]
pub fn from_mut(v: &mut bool) -> &Self {
// SAFETY: the mutable reference guarantees unique ownership, and
// alignment of both `bool` and `Self` is 1.
Expand Down Expand Up @@ -950,7 +950,7 @@ impl<T> AtomicPtr<T> {
/// assert_eq!(unsafe { *some_ptr }, 456);
/// ```
#[inline]
#[unstable(feature = "atomic_from_mut", issue = "none")]
#[unstable(feature = "atomic_from_mut", issue = "76314")]
pub fn from_mut(v: &mut *mut T) -> &Self {
let [] = [(); align_of::<Self>() - align_of::<*mut T>()];
// SAFETY:
Expand Down Expand Up @@ -1438,7 +1438,7 @@ assert_eq!(some_int, 100);
"),
#[inline]
$(#[cfg($from_mut_cfg)])?
#[unstable(feature = "atomic_from_mut", issue = "none")]
#[unstable(feature = "atomic_from_mut", issue = "76314")]
pub fn from_mut(v: &mut $int_type) -> &Self {
let [] = [(); align_of::<Self>() - align_of::<$int_type>()];
// SAFETY:
Expand Down

0 comments on commit 7cc2569

Please sign in to comment.