@@ -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 , Q > ( & mut self , range : R , pred : F ) -> ExtractIf < ' _ , K , V , R , F , A >
1441
1440
where
1442
1441
K : Borrow < Q > ,
@@ -1925,7 +1924,7 @@ impl<K, V> Default for Values<'_, K, V> {
1925
1924
}
1926
1925
1927
1926
/// An iterator produced by calling `extract_if` on BTreeMap.
1928
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1927
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1929
1928
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1930
1929
pub struct ExtractIf <
1931
1930
' a ,
@@ -1958,7 +1957,7 @@ pub(super) struct ExtractIfInner<'a, K, V, R> {
1958
1957
range : R ,
1959
1958
}
1960
1959
1961
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1960
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1962
1961
impl < K , V , R , F , A > fmt:: Debug for ExtractIf < ' _ , K , V , R , F , A >
1963
1962
where
1964
1963
K : fmt:: Debug ,
@@ -1970,7 +1969,7 @@ where
1970
1969
}
1971
1970
}
1972
1971
1973
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1972
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1974
1973
impl < K , V , R , F , A : Allocator + Clone > Iterator for ExtractIf < ' _ , K , V , R , F , A >
1975
1974
where
1976
1975
K : PartialOrd ,
@@ -2044,7 +2043,7 @@ impl<'a, K, V, R> ExtractIfInner<'a, K, V, R> {
2044
2043
}
2045
2044
}
2046
2045
2047
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
2046
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2048
2047
impl < K , V , R , F > FusedIterator for ExtractIf < ' _ , K , V , R , F >
2049
2048
where
2050
2049
K : PartialOrd ,
0 commit comments