@@ -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 = "143894" ) ]
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 > {
@@ -1325,7 +1325,7 @@ impl<T: Clone> Clone for RefCell<T> {
1325
1325
1326
1326
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1327
1327
#[ rustc_const_unstable( feature = "const_default" , issue = "143894" ) ]
1328
- impl < T : ~ const Default > const Default for RefCell < T > {
1328
+ impl <T : [ const ] Default > const Default for RefCell < T > {
1329
1329
/// Creates a `RefCell<T>`, with the `Default` value for T.
1330
1330
#[ inline ]
1331
1331
fn default ( ) -> RefCell < T > {
@@ -2333,7 +2333,7 @@ impl<T: ?Sized> UnsafeCell<T> {
2333
2333
2334
2334
#[ stable( feature = "unsafe_cell_default" , since = "1.10.0" ) ]
2335
2335
#[ rustc_const_unstable( feature = "const_default" , issue = "143894" ) ]
2336
- impl < T : ~ const Default > const Default for UnsafeCell < T > {
2336
+ impl <T : [ const ] Default > const Default for UnsafeCell < T > {
2337
2337
/// Creates an `UnsafeCell`, with the `Default` value for T.
2338
2338
fn default( ) -> UnsafeCell < T > {
2339
2339
UnsafeCell :: new ( Default :: default ( ) )
@@ -2438,7 +2438,7 @@ impl<T: ?Sized> SyncUnsafeCell<T> {
2438
2438
2439
2439
#[ unstable( feature = "sync_unsafe_cell" , issue = "95439" ) ]
2440
2440
#[ rustc_const_unstable( feature = "const_default" , issue = "143894" ) ]
2441
- impl < T : ~ const Default > const Default for SyncUnsafeCell < T > {
2441
+ impl <T : [ const ] Default > const Default for SyncUnsafeCell < T > {
2442
2442
/// Creates an `SyncUnsafeCell`, with the `Default` value for T.
2443
2443
fn default( ) -> SyncUnsafeCell < T > {
2444
2444
SyncUnsafeCell :: new ( Default :: default ( ) )
0 commit comments