@@ -1419,7 +1419,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
1419
1419
/// # Examples
1420
1420
///
1421
1421
/// ```
1422
- /// #![feature(btree_extract_if)]
1423
1422
/// use std::collections::BTreeMap;
1424
1423
///
1425
1424
/// // Splitting a map into even and odd keys, reusing the original map:
@@ -1436,7 +1435,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
1436
1435
/// assert_eq!(low.keys().copied().collect::<Vec<_>>(), [0, 1, 2, 3]);
1437
1436
/// assert_eq!(high.keys().copied().collect::<Vec<_>>(), [4, 5, 6, 7]);
1438
1437
/// ```
1439
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1438
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1440
1439
pub fn extract_if < F , R > ( & mut self , range : R , pred : F ) -> ExtractIf < ' _ , K , V , R , F , A >
1441
1440
where
1442
1441
K : Ord ,
@@ -1923,7 +1922,7 @@ impl<K, V> Default for Values<'_, K, V> {
1923
1922
}
1924
1923
1925
1924
/// An iterator produced by calling `extract_if` on BTreeMap.
1926
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1925
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1927
1926
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1928
1927
pub struct ExtractIf <
1929
1928
' a ,
@@ -1956,7 +1955,7 @@ pub(super) struct ExtractIfInner<'a, K, V, R> {
1956
1955
range : R ,
1957
1956
}
1958
1957
1959
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1958
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1960
1959
impl < K , V , R , F , A > fmt:: Debug for ExtractIf < ' _ , K , V , R , F , A >
1961
1960
where
1962
1961
K : fmt:: Debug ,
@@ -1968,7 +1967,7 @@ where
1968
1967
}
1969
1968
}
1970
1969
1971
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1970
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1972
1971
impl < K , V , R , F , A : Allocator + Clone > Iterator for ExtractIf < ' _ , K , V , R , F , A >
1973
1972
where
1974
1973
K : PartialOrd ,
@@ -2042,7 +2041,7 @@ impl<'a, K, V, R> ExtractIfInner<'a, K, V, R> {
2042
2041
}
2043
2042
}
2044
2043
2045
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
2044
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2046
2045
impl < K , V , R , F > FusedIterator for ExtractIf < ' _ , K , V , R , F >
2047
2046
where
2048
2047
K : PartialOrd ,
0 commit comments