From f225808f4919b7c475354fb165fe941dab91abb5 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Tue, 29 Mar 2022 19:54:00 +0200 Subject: [PATCH] Add tracking issue for sync_unsafe_cell. --- library/core/src/cell.rs | 14 +++++++------- library/core/src/fmt/mod.rs | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index 8f283a7f43a..2a49017de3c 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -2002,16 +2002,16 @@ impl, U> CoerceUnsized> for UnsafeCell {} /// making this type just as unsafe to use. /// /// See [`UnsafeCell`] for details. -#[unstable(feature = "sync_unsafe_cell", issue = "none")] +#[unstable(feature = "sync_unsafe_cell", issue = "95439")] #[repr(transparent)] pub struct SyncUnsafeCell { value: UnsafeCell, } -#[unstable(feature = "sync_unsafe_cell", issue = "none")] +#[unstable(feature = "sync_unsafe_cell", issue = "95439")] unsafe impl Sync for SyncUnsafeCell {} -#[unstable(feature = "sync_unsafe_cell", issue = "none")] +#[unstable(feature = "sync_unsafe_cell", issue = "95439")] impl SyncUnsafeCell { /// Constructs a new instance of `SyncUnsafeCell` which will wrap the specified value. #[inline] @@ -2026,7 +2026,7 @@ pub const fn into_inner(self) -> T { } } -#[unstable(feature = "sync_unsafe_cell", issue = "none")] +#[unstable(feature = "sync_unsafe_cell", issue = "95439")] impl SyncUnsafeCell { /// Gets a mutable pointer to the wrapped value. /// @@ -2060,7 +2060,7 @@ pub const fn raw_get(this: *const Self) -> *mut T { } } -#[unstable(feature = "sync_unsafe_cell", issue = "none")] +#[unstable(feature = "sync_unsafe_cell", issue = "95439")] impl Default for SyncUnsafeCell { /// Creates an `SyncUnsafeCell`, with the `Default` value for T. fn default() -> SyncUnsafeCell { @@ -2068,7 +2068,7 @@ fn default() -> SyncUnsafeCell { } } -#[unstable(feature = "sync_unsafe_cell", issue = "none")] +#[unstable(feature = "sync_unsafe_cell", issue = "95439")] #[rustc_const_unstable(feature = "const_convert", issue = "88674")] impl const From for SyncUnsafeCell { /// Creates a new `SyncUnsafeCell` containing the given value. @@ -2078,7 +2078,7 @@ fn from(t: T) -> SyncUnsafeCell { } #[unstable(feature = "coerce_unsized", issue = "27732")] -//#[unstable(feature = "sync_unsafe_cell", issue = "none")] +//#[unstable(feature = "sync_unsafe_cell", issue = "95439")] impl, U> CoerceUnsized> for SyncUnsafeCell {} #[allow(unused)] diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index 19a2140abe8..3e0aea4aca9 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -2396,7 +2396,7 @@ fn fmt(&self, f: &mut Formatter<'_>) -> Result { } } -#[unstable(feature = "sync_unsafe_cell", issue = "none")] +#[unstable(feature = "sync_unsafe_cell", issue = "95439")] impl Debug for SyncUnsafeCell { fn fmt(&self, f: &mut Formatter<'_>) -> Result { f.debug_struct("SyncUnsafeCell").finish_non_exhaustive()