@@ -394,7 +394,6 @@ impl<T> Cell<T> {
394394 /// # Examples
395395 ///
396396 /// ```
397- /// #![feature(move_cell)]
398397 /// use std::cell::Cell;
399398 ///
400399 /// let c1 = Cell::new(5i32);
@@ -404,7 +403,7 @@ impl<T> Cell<T> {
404403 /// assert_eq!(5, c2.get());
405404 /// ```
406405 #[ inline]
407- #[ unstable ( feature = "move_cell" , issue = "39264 " ) ]
406+ #[ stable ( feature = "move_cell" , since = "1.17.0 " ) ]
408407 pub fn swap ( & self , other : & Self ) {
409408 if ptr:: eq ( self , other) {
410409 return ;
@@ -419,15 +418,14 @@ impl<T> Cell<T> {
419418 /// # Examples
420419 ///
421420 /// ```
422- /// #![feature(move_cell)]
423421 /// use std::cell::Cell;
424422 ///
425423 /// let c = Cell::new(5);
426424 /// let old = c.replace(10);
427425 ///
428426 /// assert_eq!(5, old);
429427 /// ```
430- #[ unstable ( feature = "move_cell" , issue = "39264 " ) ]
428+ #[ stable ( feature = "move_cell" , since = "1.17.0 " ) ]
431429 pub fn replace ( & self , val : T ) -> T {
432430 mem:: replace ( unsafe { & mut * self . value . get ( ) } , val)
433431 }
@@ -437,15 +435,14 @@ impl<T> Cell<T> {
437435 /// # Examples
438436 ///
439437 /// ```
440- /// #![feature(move_cell)]
441438 /// use std::cell::Cell;
442439 ///
443440 /// let c = Cell::new(5);
444441 /// let five = c.into_inner();
445442 ///
446443 /// assert_eq!(five, 5);
447444 /// ```
448- #[ unstable ( feature = "move_cell" , issue = "39264 " ) ]
445+ #[ stable ( feature = "move_cell" , since = "1.17.0 " ) ]
449446 pub fn into_inner ( self ) -> T {
450447 unsafe { self . value . into_inner ( ) }
451448 }
@@ -457,7 +454,6 @@ impl<T: Default> Cell<T> {
457454 /// # Examples
458455 ///
459456 /// ```
460- /// #![feature(move_cell)]
461457 /// use std::cell::Cell;
462458 ///
463459 /// let c = Cell::new(5);
@@ -466,7 +462,7 @@ impl<T: Default> Cell<T> {
466462 /// assert_eq!(five, 5);
467463 /// assert_eq!(c.into_inner(), 0);
468464 /// ```
469- #[ unstable ( feature = "move_cell" , issue = "39264 " ) ]
465+ #[ stable ( feature = "move_cell" , since = "1.17.0 " ) ]
470466 pub fn take ( & self ) -> T {
471467 self . replace ( Default :: default ( ) )
472468 }
0 commit comments