@@ -1433,7 +1433,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
1433
1433
/// # Examples
1434
1434
///
1435
1435
/// ```
1436
- /// #![feature(btree_extract_if)]
1437
1436
/// use std::collections::BTreeMap;
1438
1437
///
1439
1438
/// // Splitting a map into even and odd keys, reusing the original map:
@@ -1450,7 +1449,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
1450
1449
/// assert_eq!(low.keys().copied().collect::<Vec<_>>(), [0, 1, 2, 3]);
1451
1450
/// assert_eq!(high.keys().copied().collect::<Vec<_>>(), [4, 5, 6, 7]);
1452
1451
/// ```
1453
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1452
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1454
1453
pub fn extract_if < F , R > ( & mut self , range : R , pred : F ) -> ExtractIf < ' _ , K , V , R , F , A >
1455
1454
where
1456
1455
K : Ord ,
@@ -1937,7 +1936,7 @@ impl<K, V> Default for Values<'_, K, V> {
1937
1936
}
1938
1937
1939
1938
/// An iterator produced by calling `extract_if` on BTreeMap.
1940
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1939
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1941
1940
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1942
1941
pub struct ExtractIf <
1943
1942
' a ,
@@ -1970,7 +1969,7 @@ pub(super) struct ExtractIfInner<'a, K, V, R> {
1970
1969
range : R ,
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 > fmt:: Debug for ExtractIf < ' _ , K , V , R , F , A >
1975
1974
where
1976
1975
K : fmt:: Debug ,
@@ -1982,7 +1981,7 @@ where
1982
1981
}
1983
1982
}
1984
1983
1985
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
1984
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1986
1985
impl < K , V , R , F , A : Allocator + Clone > Iterator for ExtractIf < ' _ , K , V , R , F , A >
1987
1986
where
1988
1987
K : PartialOrd ,
@@ -2056,7 +2055,7 @@ impl<'a, K, V, R> ExtractIfInner<'a, K, V, R> {
2056
2055
}
2057
2056
}
2058
2057
2059
- #[ unstable ( feature = "btree_extract_if" , issue = "70530 " ) ]
2058
+ #[ stable ( feature = "btree_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2060
2059
impl < K , V , R , F > FusedIterator for ExtractIf < ' _ , K , V , R , F >
2061
2060
where
2062
2061
K : PartialOrd ,
0 commit comments