@@ -86,7 +86,7 @@ pub trait SliceExt {
86
86
fn split < P > ( & self , pred : P ) -> Split < Self :: Item , P >
87
87
where P : FnMut ( & Self :: Item ) -> bool ;
88
88
89
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
89
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
90
90
fn rsplit < P > ( & self , pred : P ) -> RSplit < Self :: Item , P >
91
91
where P : FnMut ( & Self :: Item ) -> bool ;
92
92
@@ -169,7 +169,7 @@ pub trait SliceExt {
169
169
fn split_mut < P > ( & mut self , pred : P ) -> SplitMut < Self :: Item , P >
170
170
where P : FnMut ( & Self :: Item ) -> bool ;
171
171
172
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
172
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
173
173
fn rsplit_mut < P > ( & mut self , pred : P ) -> RSplitMut < Self :: Item , P >
174
174
where P : FnMut ( & Self :: Item ) -> bool ;
175
175
@@ -223,7 +223,7 @@ pub trait SliceExt {
223
223
#[ stable( feature = "copy_from_slice" , since = "1.9.0" ) ]
224
224
fn copy_from_slice ( & mut self , src : & [ Self :: Item ] ) where Self :: Item : Copy ;
225
225
226
- #[ unstable ( feature = "swap_with_slice" , issue = "44030 " ) ]
226
+ #[ stable ( feature = "swap_with_slice" , since = "1.27.0 " ) ]
227
227
fn swap_with_slice ( & mut self , src : & mut [ Self :: Item ] ) ;
228
228
229
229
#[ stable( feature = "sort_unstable" , since = "1.20.0" ) ]
@@ -1840,13 +1840,13 @@ impl<'a, T, P> FusedIterator for SplitMut<'a, T, P> where P: FnMut(&T) -> bool {
1840
1840
///
1841
1841
/// [`rsplit`]: ../../std/primitive.slice.html#method.rsplit
1842
1842
/// [slices]: ../../std/primitive.slice.html
1843
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1843
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1844
1844
#[ derive( Clone ) ] // Is this correct, or does it incorrectly require `T: Clone`?
1845
1845
pub struct RSplit < ' a , T : ' a , P > where P : FnMut ( & T ) -> bool {
1846
1846
inner : Split < ' a , T , P >
1847
1847
}
1848
1848
1849
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1849
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1850
1850
impl < ' a , T : ' a + fmt:: Debug , P > fmt:: Debug for RSplit < ' a , T , P > where P : FnMut ( & T ) -> bool {
1851
1851
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1852
1852
f. debug_struct ( "RSplit" )
@@ -1856,7 +1856,7 @@ impl<'a, T: 'a + fmt::Debug, P> fmt::Debug for RSplit<'a, T, P> where P: FnMut(&
1856
1856
}
1857
1857
}
1858
1858
1859
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1859
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1860
1860
impl < ' a , T , P > Iterator for RSplit < ' a , T , P > where P : FnMut ( & T ) -> bool {
1861
1861
type Item = & ' a [ T ] ;
1862
1862
@@ -1871,23 +1871,23 @@ impl<'a, T, P> Iterator for RSplit<'a, T, P> where P: FnMut(&T) -> bool {
1871
1871
}
1872
1872
}
1873
1873
1874
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1874
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1875
1875
impl < ' a , T , P > DoubleEndedIterator for RSplit < ' a , T , P > where P : FnMut ( & T ) -> bool {
1876
1876
#[ inline]
1877
1877
fn next_back ( & mut self ) -> Option < & ' a [ T ] > {
1878
1878
self . inner . next ( )
1879
1879
}
1880
1880
}
1881
1881
1882
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1882
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1883
1883
impl < ' a , T , P > SplitIter for RSplit < ' a , T , P > where P : FnMut ( & T ) -> bool {
1884
1884
#[ inline]
1885
1885
fn finish ( & mut self ) -> Option < & ' a [ T ] > {
1886
1886
self . inner . finish ( )
1887
1887
}
1888
1888
}
1889
1889
1890
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1890
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1891
1891
impl < ' a , T , P > FusedIterator for RSplit < ' a , T , P > where P : FnMut ( & T ) -> bool { }
1892
1892
1893
1893
/// An iterator over the subslices of the vector which are separated
@@ -1897,12 +1897,12 @@ impl<'a, T, P> FusedIterator for RSplit<'a, T, P> where P: FnMut(&T) -> bool {}
1897
1897
///
1898
1898
/// [`rsplit_mut`]: ../../std/primitive.slice.html#method.rsplit_mut
1899
1899
/// [slices]: ../../std/primitive.slice.html
1900
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1900
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1901
1901
pub struct RSplitMut < ' a , T : ' a , P > where P : FnMut ( & T ) -> bool {
1902
1902
inner : SplitMut < ' a , T , P >
1903
1903
}
1904
1904
1905
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1905
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1906
1906
impl < ' a , T : ' a + fmt:: Debug , P > fmt:: Debug for RSplitMut < ' a , T , P > where P : FnMut ( & T ) -> bool {
1907
1907
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1908
1908
f. debug_struct ( "RSplitMut" )
@@ -1912,15 +1912,15 @@ impl<'a, T: 'a + fmt::Debug, P> fmt::Debug for RSplitMut<'a, T, P> where P: FnMu
1912
1912
}
1913
1913
}
1914
1914
1915
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1915
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1916
1916
impl < ' a , T , P > SplitIter for RSplitMut < ' a , T , P > where P : FnMut ( & T ) -> bool {
1917
1917
#[ inline]
1918
1918
fn finish ( & mut self ) -> Option < & ' a mut [ T ] > {
1919
1919
self . inner . finish ( )
1920
1920
}
1921
1921
}
1922
1922
1923
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1923
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1924
1924
impl < ' a , T , P > Iterator for RSplitMut < ' a , T , P > where P : FnMut ( & T ) -> bool {
1925
1925
type Item = & ' a mut [ T ] ;
1926
1926
@@ -1935,7 +1935,7 @@ impl<'a, T, P> Iterator for RSplitMut<'a, T, P> where P: FnMut(&T) -> bool {
1935
1935
}
1936
1936
}
1937
1937
1938
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1938
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1939
1939
impl < ' a , T , P > DoubleEndedIterator for RSplitMut < ' a , T , P > where
1940
1940
P : FnMut ( & T ) -> bool ,
1941
1941
{
@@ -1945,7 +1945,7 @@ impl<'a, T, P> DoubleEndedIterator for RSplitMut<'a, T, P> where
1945
1945
}
1946
1946
}
1947
1947
1948
- #[ unstable ( feature = "slice_rsplit" , issue = "41020 " ) ]
1948
+ #[ stable ( feature = "slice_rsplit" , since = "1.27.0 " ) ]
1949
1949
impl < ' a , T , P > FusedIterator for RSplitMut < ' a , T , P > where P : FnMut ( & T ) -> bool { }
1950
1950
1951
1951
/// An private iterator over subslices separated by elements that
0 commit comments