@@ -656,7 +656,6 @@ impl<K, V, S> HashMap<K, V, S> {
656656 /// Splitting a map into even and odd keys, reusing the original map:
657657 ///
658658 /// ```
659- /// #![feature(hash_extract_if)]
660659 /// use std::collections::HashMap;
661660 ///
662661 /// let mut map: HashMap<i32, i32> = (0..8).map(|x| (x, x)).collect();
@@ -672,7 +671,7 @@ impl<K, V, S> HashMap<K, V, S> {
672671 /// ```
673672 #[ inline]
674673 #[ rustc_lint_query_instability]
675- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
674+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
676675 pub fn extract_if < F > ( & mut self , pred : F ) -> ExtractIf < ' _ , K , V , F >
677676 where
678677 F : FnMut ( & K , & mut V ) -> bool ,
@@ -1722,16 +1721,14 @@ impl<'a, K, V> Drain<'a, K, V> {
17221721/// # Example
17231722///
17241723/// ```
1725- /// #![feature(hash_extract_if)]
1726- ///
17271724/// use std::collections::HashMap;
17281725///
17291726/// let mut map = HashMap::from([
17301727/// ("a", 1),
17311728/// ]);
17321729/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
17331730/// ```
1734- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
1731+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
17351732#[ must_use = "iterators are lazy and do nothing unless consumed" ]
17361733pub struct ExtractIf < ' a , K , V , F >
17371734where
@@ -2746,7 +2743,7 @@ where
27462743 }
27472744}
27482745
2749- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2746+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
27502747impl < K , V , F > Iterator for ExtractIf < ' _ , K , V , F >
27512748where
27522749 F : FnMut ( & K , & mut V ) -> bool ,
@@ -2763,10 +2760,10 @@ where
27632760 }
27642761}
27652762
2766- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2763+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
27672764impl < K , V , F > FusedIterator for ExtractIf < ' _ , K , V , F > where F : FnMut ( & K , & mut V ) -> bool { }
27682765
2769- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2766+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
27702767impl < ' a , K , V , F > fmt:: Debug for ExtractIf < ' a , K , V , F >
27712768where
27722769 F : FnMut ( & K , & mut V ) -> bool ,
0 commit comments