@@ -1140,7 +1140,6 @@ impl<T, A: Allocator> LinkedList<T, A> {
1140
1140
/// Splitting a list into evens and odds, reusing the original list:
1141
1141
///
1142
1142
/// ```
1143
- /// #![feature(extract_if)]
1144
1143
/// use std::collections::LinkedList;
1145
1144
///
1146
1145
/// let mut numbers: LinkedList<u32> = LinkedList::new();
@@ -1152,7 +1151,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
1152
1151
/// assert_eq!(evens.into_iter().collect::<Vec<_>>(), vec![2, 4, 6, 8, 14]);
1153
1152
/// assert_eq!(odds.into_iter().collect::<Vec<_>>(), vec![1, 3, 5, 9, 11, 13, 15]);
1154
1153
/// ```
1155
- #[ unstable ( feature = "extract_if" , reason = "recently added" , issue = "43244 ") ]
1154
+ #[ stable ( feature = "extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1156
1155
pub fn extract_if < F > ( & mut self , filter : F ) -> ExtractIf < ' _ , T , F , A >
1157
1156
where
1158
1157
F : FnMut ( & mut T ) -> bool ,
@@ -1932,7 +1931,7 @@ impl<'a, T, A: Allocator> CursorMut<'a, T, A> {
1932
1931
}
1933
1932
1934
1933
/// An iterator produced by calling `extract_if` on LinkedList.
1935
- #[ unstable ( feature = "extract_if" , reason = "recently added" , issue = "43244 ") ]
1934
+ #[ stable ( feature = "extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1936
1935
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1937
1936
pub struct ExtractIf <
1938
1937
' a ,
@@ -1947,7 +1946,7 @@ pub struct ExtractIf<
1947
1946
old_len : usize ,
1948
1947
}
1949
1948
1950
- #[ unstable ( feature = "extract_if" , reason = "recently added" , issue = "43244 ") ]
1949
+ #[ stable ( feature = "extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1951
1950
impl < T , F , A : Allocator > Iterator for ExtractIf < ' _ , T , F , A >
1952
1951
where
1953
1952
F : FnMut ( & mut T ) -> bool ,
@@ -1976,7 +1975,7 @@ where
1976
1975
}
1977
1976
}
1978
1977
1979
- #[ unstable ( feature = "extract_if" , reason = "recently added" , issue = "43244 ") ]
1978
+ #[ stable ( feature = "extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1980
1979
impl < T : fmt:: Debug , F > fmt:: Debug for ExtractIf < ' _ , T , F > {
1981
1980
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1982
1981
f. debug_tuple ( "ExtractIf" ) . field ( & self . list ) . finish ( )
0 commit comments