@@ -659,7 +659,6 @@ impl<K, V, S> HashMap<K, V, S> {
659659 /// Splitting a map into even and odd keys, reusing the original map:
660660 ///
661661 /// ```
662- /// #![feature(hash_extract_if)]
663662 /// use std::collections::HashMap;
664663 ///
665664 /// let mut map: HashMap<i32, i32> = (0..8).map(|x| (x, x)).collect();
@@ -675,7 +674,7 @@ impl<K, V, S> HashMap<K, V, S> {
675674 /// ```
676675 #[ inline]
677676 #[ rustc_lint_query_instability]
678- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
677+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
679678 pub fn extract_if < F > ( & mut self , pred : F ) -> ExtractIf < ' _ , K , V , F >
680679 where
681680 F : FnMut ( & K , & mut V ) -> bool ,
@@ -1718,16 +1717,14 @@ impl<'a, K, V> Drain<'a, K, V> {
17181717/// # Example
17191718///
17201719/// ```
1721- /// #![feature(hash_extract_if)]
1722- ///
17231720/// use std::collections::HashMap;
17241721///
17251722/// let mut map = HashMap::from([
17261723/// ("a", 1),
17271724/// ]);
17281725/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
17291726/// ```
1730- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
1727+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
17311728#[ must_use = "iterators are lazy and do nothing unless consumed" ]
17321729pub struct ExtractIf < ' a , K , V , F >
17331730where
@@ -2742,7 +2739,7 @@ where
27422739 }
27432740}
27442741
2745- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2742+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
27462743impl < K , V , F > Iterator for ExtractIf < ' _ , K , V , F >
27472744where
27482745 F : FnMut ( & K , & mut V ) -> bool ,
@@ -2759,10 +2756,10 @@ where
27592756 }
27602757}
27612758
2762- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2759+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
27632760impl < K , V , F > FusedIterator for ExtractIf < ' _ , K , V , F > where F : FnMut ( & K , & mut V ) -> bool { }
27642761
2765- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2762+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
27662763impl < ' a , K , V , F > fmt:: Debug for ExtractIf < ' a , K , V , F >
27672764where
27682765 F : FnMut ( & K , & mut V ) -> bool ,
0 commit comments