@@ -1702,8 +1702,6 @@ impl<T> [T] {
1702
1702
/// Swapping two elements across slices:
1703
1703
///
1704
1704
/// ```
1705
- /// #![feature(swap_with_slice)]
1706
- ///
1707
1705
/// let mut slice1 = [0, 0];
1708
1706
/// let mut slice2 = [1, 2, 3, 4];
1709
1707
///
@@ -1719,8 +1717,6 @@ impl<T> [T] {
1719
1717
/// a compile failure:
1720
1718
///
1721
1719
/// ```compile_fail
1722
- /// #![feature(swap_with_slice)]
1723
- ///
1724
1720
/// let mut slice = [1, 2, 3, 4, 5];
1725
1721
/// slice[..2].swap_with_slice(&mut slice[3..]); // compile fail!
1726
1722
/// ```
@@ -1729,8 +1725,6 @@ impl<T> [T] {
1729
1725
/// mutable sub-slices from a slice:
1730
1726
///
1731
1727
/// ```
1732
- /// #![feature(swap_with_slice)]
1733
- ///
1734
1728
/// let mut slice = [1, 2, 3, 4, 5];
1735
1729
///
1736
1730
/// {
@@ -1742,7 +1736,7 @@ impl<T> [T] {
1742
1736
/// ```
1743
1737
///
1744
1738
/// [`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 " ) ]
1746
1740
pub fn swap_with_slice ( & mut self , other : & mut [ T ] ) {
1747
1741
core_slice:: SliceExt :: swap_with_slice ( self , other)
1748
1742
}
0 commit comments