@@ -1702,8 +1702,6 @@ impl<T> [T] {
17021702 /// Swapping two elements across slices:
17031703 ///
17041704 /// ```
1705- /// #![feature(swap_with_slice)]
1706- ///
17071705 /// let mut slice1 = [0, 0];
17081706 /// let mut slice2 = [1, 2, 3, 4];
17091707 ///
@@ -1719,8 +1717,6 @@ impl<T> [T] {
17191717 /// a compile failure:
17201718 ///
17211719 /// ```compile_fail
1722- /// #![feature(swap_with_slice)]
1723- ///
17241720 /// let mut slice = [1, 2, 3, 4, 5];
17251721 /// slice[..2].swap_with_slice(&mut slice[3..]); // compile fail!
17261722 /// ```
@@ -1729,8 +1725,6 @@ impl<T> [T] {
17291725 /// mutable sub-slices from a slice:
17301726 ///
17311727 /// ```
1732- /// #![feature(swap_with_slice)]
1733- ///
17341728 /// let mut slice = [1, 2, 3, 4, 5];
17351729 ///
17361730 /// {
@@ -1742,7 +1736,7 @@ impl<T> [T] {
17421736 /// ```
17431737 ///
17441738 /// [`split_at_mut`]: #method.split_at_mut
1745- #[ unstable ( feature = "swap_with_slice" , issue = "44030 " ) ]
1739+ #[ stable ( feature = "swap_with_slice" , since = "1.27.0 " ) ]
17461740 pub fn swap_with_slice ( & mut self , other : & mut [ T ] ) {
17471741 core_slice:: SliceExt :: swap_with_slice ( self , other)
17481742 }
0 commit comments