@@ -1460,8 +1460,6 @@ impl<T> [T] {
14601460 /// # Examples
14611461 ///
14621462 /// ```
1463- /// #![feature(slice_rotate)]
1464- ///
14651463 /// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
14661464 /// a.rotate_left(2);
14671465 /// assert_eq!(a, ['c', 'd', 'e', 'f', 'a', 'b']);
@@ -1470,23 +1468,15 @@ impl<T> [T] {
14701468 /// Rotating a subslice:
14711469 ///
14721470 /// ```
1473- /// #![feature(slice_rotate)]
1474- ///
14751471 /// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
14761472 /// a[1..5].rotate_left(1);
14771473 /// assert_eq!(a, ['a', 'c', 'd', 'e', 'b', 'f']);
1478- /// ```
1479- #[ unstable ( feature = "slice_rotate" , issue = "41891 " ) ]
1474+ /// ```
1475+ #[ stable ( feature = "slice_rotate" , since = "1.26.0 " ) ]
14801476 pub fn rotate_left ( & mut self , mid : usize ) {
14811477 core_slice:: SliceExt :: rotate_left ( self , mid) ;
14821478 }
14831479
1484- #[ unstable( feature = "slice_rotate" , issue = "41891" ) ]
1485- #[ rustc_deprecated( since = "" , reason = "renamed to `rotate_left`" ) ]
1486- pub fn rotate ( & mut self , mid : usize ) {
1487- core_slice:: SliceExt :: rotate_left ( self , mid) ;
1488- }
1489-
14901480 /// Rotates the slice in-place such that the first `self.len() - k`
14911481 /// elements of the slice move to the end while the last `k` elements move
14921482 /// to the front. After calling `rotate_right`, the element previously at
@@ -1505,8 +1495,6 @@ impl<T> [T] {
15051495 /// # Examples
15061496 ///
15071497 /// ```
1508- /// #![feature(slice_rotate)]
1509- ///
15101498 /// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
15111499 /// a.rotate_right(2);
15121500 /// assert_eq!(a, ['e', 'f', 'a', 'b', 'c', 'd']);
@@ -1515,13 +1503,11 @@ impl<T> [T] {
15151503 /// Rotate a subslice:
15161504 ///
15171505 /// ```
1518- /// #![feature(slice_rotate)]
1519- ///
15201506 /// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
15211507 /// a[1..5].rotate_right(1);
15221508 /// assert_eq!(a, ['a', 'e', 'b', 'c', 'd', 'f']);
15231509 /// ```
1524- #[ unstable ( feature = "slice_rotate" , issue = "41891 " ) ]
1510+ #[ stable ( feature = "slice_rotate" , since = "1.26.0 " ) ]
15251511 pub fn rotate_right ( & mut self , k : usize ) {
15261512 core_slice:: SliceExt :: rotate_right ( self , k) ;
15271513 }
0 commit comments