@@ -333,7 +333,8 @@ impl<T: Copy> Clone for Cell<T> {
333333}
334334
335335#[ stable( feature = "rust1" , since = "1.0.0" ) ]
336- impl < T : Default > Default for Cell < T > {
336+ #[ rustc_const_unstable( feature = "const_default" , issue = "67792" ) ]
337+ impl < T : ~const Default > const Default for Cell < T > {
337338 /// Creates a `Cell<T>`, with the `Default` value for T.
338339 #[ inline]
339340 fn default ( ) -> Cell < T > {
@@ -1323,7 +1324,8 @@ impl<T: Clone> Clone for RefCell<T> {
13231324}
13241325
13251326#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1326- impl < T : Default > Default for RefCell < T > {
1327+ #[ rustc_const_unstable( feature = "const_default" , issue = "67792" ) ]
1328+ impl < T : ~const Default > const Default for RefCell < T > {
13271329 /// Creates a `RefCell<T>`, with the `Default` value for T.
13281330 #[ inline]
13291331 fn default ( ) -> RefCell < T > {
@@ -2330,7 +2332,8 @@ impl<T: ?Sized> UnsafeCell<T> {
23302332}
23312333
23322334#[ stable( feature = "unsafe_cell_default" , since = "1.10.0" ) ]
2333- impl < T : Default > Default for UnsafeCell < T > {
2335+ #[ rustc_const_unstable( feature = "const_default" , issue = "67792" ) ]
2336+ impl < T : ~const Default > const Default for UnsafeCell < T > {
23342337 /// Creates an `UnsafeCell`, with the `Default` value for T.
23352338 fn default ( ) -> UnsafeCell < T > {
23362339 UnsafeCell :: new ( Default :: default ( ) )
@@ -2434,7 +2437,8 @@ impl<T: ?Sized> SyncUnsafeCell<T> {
24342437}
24352438
24362439#[ unstable( feature = "sync_unsafe_cell" , issue = "95439" ) ]
2437- impl < T : Default > Default for SyncUnsafeCell < T > {
2440+ #[ rustc_const_unstable( feature = "const_default" , issue = "67792" ) ]
2441+ impl < T : ~const Default > const Default for SyncUnsafeCell < T > {
24382442 /// Creates an `SyncUnsafeCell`, with the `Default` value for T.
24392443 fn default ( ) -> SyncUnsafeCell < T > {
24402444 SyncUnsafeCell :: new ( Default :: default ( ) )
0 commit comments