Skip to content

Commit f225808

Browse files
committed
Add tracking issue for sync_unsafe_cell.
1 parent 750ab03 commit f225808

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

library/core/src/cell.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -2002,16 +2002,16 @@ impl<T: CoerceUnsized<U>, U> CoerceUnsized<UnsafeCell<U>> for UnsafeCell<T> {}
20022002
/// making this type just as unsafe to use.
20032003
///
20042004
/// See [`UnsafeCell`] for details.
2005-
#[unstable(feature = "sync_unsafe_cell", issue = "none")]
2005+
#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
20062006
#[repr(transparent)]
20072007
pub struct SyncUnsafeCell<T: ?Sized> {
20082008
value: UnsafeCell<T>,
20092009
}
20102010

2011-
#[unstable(feature = "sync_unsafe_cell", issue = "none")]
2011+
#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
20122012
unsafe impl<T: ?Sized + Sync> Sync for SyncUnsafeCell<T> {}
20132013

2014-
#[unstable(feature = "sync_unsafe_cell", issue = "none")]
2014+
#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
20152015
impl<T> SyncUnsafeCell<T> {
20162016
/// Constructs a new instance of `SyncUnsafeCell` which will wrap the specified value.
20172017
#[inline]
@@ -2026,7 +2026,7 @@ impl<T> SyncUnsafeCell<T> {
20262026
}
20272027
}
20282028

2029-
#[unstable(feature = "sync_unsafe_cell", issue = "none")]
2029+
#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
20302030
impl<T: ?Sized> SyncUnsafeCell<T> {
20312031
/// Gets a mutable pointer to the wrapped value.
20322032
///
@@ -2060,15 +2060,15 @@ impl<T: ?Sized> SyncUnsafeCell<T> {
20602060
}
20612061
}
20622062

2063-
#[unstable(feature = "sync_unsafe_cell", issue = "none")]
2063+
#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
20642064
impl<T: Default> Default for SyncUnsafeCell<T> {
20652065
/// Creates an `SyncUnsafeCell`, with the `Default` value for T.
20662066
fn default() -> SyncUnsafeCell<T> {
20672067
SyncUnsafeCell::new(Default::default())
20682068
}
20692069
}
20702070

2071-
#[unstable(feature = "sync_unsafe_cell", issue = "none")]
2071+
#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
20722072
#[rustc_const_unstable(feature = "const_convert", issue = "88674")]
20732073
impl<T> const From<T> for SyncUnsafeCell<T> {
20742074
/// Creates a new `SyncUnsafeCell<T>` containing the given value.
@@ -2078,7 +2078,7 @@ impl<T> const From<T> for SyncUnsafeCell<T> {
20782078
}
20792079

20802080
#[unstable(feature = "coerce_unsized", issue = "27732")]
2081-
//#[unstable(feature = "sync_unsafe_cell", issue = "none")]
2081+
//#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
20822082
impl<T: CoerceUnsized<U>, U> CoerceUnsized<SyncUnsafeCell<U>> for SyncUnsafeCell<T> {}
20832083

20842084
#[allow(unused)]

library/core/src/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ impl<T: ?Sized> Debug for UnsafeCell<T> {
23962396
}
23972397
}
23982398

2399-
#[unstable(feature = "sync_unsafe_cell", issue = "none")]
2399+
#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
24002400
impl<T: ?Sized> Debug for SyncUnsafeCell<T> {
24012401
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
24022402
f.debug_struct("SyncUnsafeCell").finish_non_exhaustive()

0 commit comments

Comments
 (0)