Skip to content

Commit c8e3810

Browse files
committed
Change ~const to [const]
1 parent 37eb628 commit c8e3810

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎library/core/src/cell.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ impl<T: Copy> Clone for Cell<T> {
334334

335335
#[stable(feature = "rust1", since = "1.0.0")]
336336
#[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> {
338338
/// Creates a `Cell<T>`, with the `Default` value for T.
339339
#[inline]
340340
fn default() -> Cell<T> {
@@ -1328,7 +1328,7 @@ impl<T: Clone> Clone for RefCell<T> {
13281328

13291329
#[stable(feature = "rust1", since = "1.0.0")]
13301330
#[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> {
13321332
/// Creates a `RefCell<T>`, with the `Default` value for T.
13331333
#[inline]
13341334
fn default() -> RefCell<T> {
@@ -2336,7 +2336,7 @@ impl<T: ?Sized> UnsafeCell<T> {
23362336

23372337
#[stable(feature = "unsafe_cell_default", since = "1.10.0")]
23382338
#[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> {
23402340
/// Creates an `UnsafeCell`, with the `Default` value for T.
23412341
fn default() -> UnsafeCell<T> {
23422342
UnsafeCell::new(Default::default())
@@ -2444,7 +2444,7 @@ impl<T: ?Sized> SyncUnsafeCell<T> {
24442444

24452445
#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
24462446
#[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> {
24482448
/// Creates an `SyncUnsafeCell`, with the `Default` value for T.
24492449
fn default() -> SyncUnsafeCell<T> {
24502450
SyncUnsafeCell::new(Default::default())

0 commit comments

Comments
 (0)