@@ -334,7 +334,7 @@ impl<T: Copy> Clone for Cell<T> {
334
334
335
335
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
336
336
#[ rustc_const_unstable( feature = "const_default" , issue = "67792" ) ]
337
- impl < T : ~ const Default > const Default for Cell < T > {
337
+ impl <T : [ const ] Default > const Default for Cell < T > {
338
338
/// Creates a `Cell<T>`, with the `Default` value for T.
339
339
#[ inline ]
340
340
fn default ( ) -> Cell < T > {
@@ -1328,7 +1328,7 @@ impl<T: Clone> Clone for RefCell<T> {
1328
1328
1329
1329
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1330
1330
#[ rustc_const_unstable( feature = "const_default" , issue = "67792" ) ]
1331
- impl < T : ~ const Default > const Default for RefCell < T > {
1331
+ impl <T : [ const ] Default > const Default for RefCell < T > {
1332
1332
/// Creates a `RefCell<T>`, with the `Default` value for T.
1333
1333
#[ inline ]
1334
1334
fn default ( ) -> RefCell < T > {
@@ -2336,7 +2336,7 @@ impl<T: ?Sized> UnsafeCell<T> {
2336
2336
2337
2337
#[ stable( feature = "unsafe_cell_default" , since = "1.10.0" ) ]
2338
2338
#[ rustc_const_unstable( feature = "const_default" , issue = "67792" ) ]
2339
- impl < T : ~ const Default > const Default for UnsafeCell < T > {
2339
+ impl <T : [ const ] Default > const Default for UnsafeCell < T > {
2340
2340
/// Creates an `UnsafeCell`, with the `Default` value for T.
2341
2341
fn default( ) -> UnsafeCell < T > {
2342
2342
UnsafeCell :: new ( Default :: default ( ) )
@@ -2444,7 +2444,7 @@ impl<T: ?Sized> SyncUnsafeCell<T> {
2444
2444
2445
2445
#[ unstable( feature = "sync_unsafe_cell" , issue = "95439" ) ]
2446
2446
#[ rustc_const_unstable( feature = "const_default" , issue = "67792" ) ]
2447
- impl < T : ~ const Default > const Default for SyncUnsafeCell < T > {
2447
+ impl <T : [ const ] Default > const Default for SyncUnsafeCell < T > {
2448
2448
/// Creates an `SyncUnsafeCell`, with the `Default` value for T.
2449
2449
fn default( ) -> SyncUnsafeCell < T > {
2450
2450
SyncUnsafeCell :: new ( Default :: default ( ) )
0 commit comments