@@ -394,7 +394,6 @@ impl<T> Cell<T> {
394
394
/// # Examples
395
395
///
396
396
/// ```
397
- /// #![feature(move_cell)]
398
397
/// use std::cell::Cell;
399
398
///
400
399
/// let c1 = Cell::new(5i32);
@@ -404,7 +403,7 @@ impl<T> Cell<T> {
404
403
/// assert_eq!(5, c2.get());
405
404
/// ```
406
405
#[ inline]
407
- #[ unstable ( feature = "move_cell" , issue = "39264 " ) ]
406
+ #[ stable ( feature = "move_cell" , since = "1.17.0 " ) ]
408
407
pub fn swap ( & self , other : & Self ) {
409
408
if ptr:: eq ( self , other) {
410
409
return ;
@@ -419,15 +418,14 @@ impl<T> Cell<T> {
419
418
/// # Examples
420
419
///
421
420
/// ```
422
- /// #![feature(move_cell)]
423
421
/// use std::cell::Cell;
424
422
///
425
423
/// let c = Cell::new(5);
426
424
/// let old = c.replace(10);
427
425
///
428
426
/// assert_eq!(5, old);
429
427
/// ```
430
- #[ unstable ( feature = "move_cell" , issue = "39264 " ) ]
428
+ #[ stable ( feature = "move_cell" , since = "1.17.0 " ) ]
431
429
pub fn replace ( & self , val : T ) -> T {
432
430
mem:: replace ( unsafe { & mut * self . value . get ( ) } , val)
433
431
}
@@ -437,15 +435,14 @@ impl<T> Cell<T> {
437
435
/// # Examples
438
436
///
439
437
/// ```
440
- /// #![feature(move_cell)]
441
438
/// use std::cell::Cell;
442
439
///
443
440
/// let c = Cell::new(5);
444
441
/// let five = c.into_inner();
445
442
///
446
443
/// assert_eq!(five, 5);
447
444
/// ```
448
- #[ unstable ( feature = "move_cell" , issue = "39264 " ) ]
445
+ #[ stable ( feature = "move_cell" , since = "1.17.0 " ) ]
449
446
pub fn into_inner ( self ) -> T {
450
447
unsafe { self . value . into_inner ( ) }
451
448
}
@@ -457,7 +454,6 @@ impl<T: Default> Cell<T> {
457
454
/// # Examples
458
455
///
459
456
/// ```
460
- /// #![feature(move_cell)]
461
457
/// use std::cell::Cell;
462
458
///
463
459
/// let c = Cell::new(5);
@@ -466,7 +462,7 @@ impl<T: Default> Cell<T> {
466
462
/// assert_eq!(five, 5);
467
463
/// assert_eq!(c.into_inner(), 0);
468
464
/// ```
469
- #[ unstable ( feature = "move_cell" , issue = "39264 " ) ]
465
+ #[ stable ( feature = "move_cell" , since = "1.17.0 " ) ]
470
466
pub fn take ( & self ) -> T {
471
467
self . replace ( Default :: default ( ) )
472
468
}
0 commit comments