@@ -668,6 +668,7 @@ impl<K, V, S> HashMap<K, V, S> {
668668 /// Splitting a map into even and odd keys, reusing the original map:
669669 ///
670670 /// ```
671+ /// #![feature(hash_extract_if)]
671672 /// use std::collections::HashMap;
672673 ///
673674 /// let mut map: HashMap<i32, i32> = (0..8).map(|x| (x, x)).collect();
@@ -683,7 +684,7 @@ impl<K, V, S> HashMap<K, V, S> {
683684 /// ```
684685 #[ inline]
685686 #[ rustc_lint_query_instability]
686- #[ stable ( feature = "hash_extract_if" , since = "1.87.0 " ) ]
687+ #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
687688 pub fn extract_if < F > ( & mut self , pred : F ) -> ExtractIf < ' _ , K , V , F >
688689 where
689690 F : FnMut ( & K , & mut V ) -> bool ,
@@ -1670,14 +1671,16 @@ impl<'a, K, V> Drain<'a, K, V> {
16701671/// # Example
16711672///
16721673/// ```
1674+ /// #![feature(hash_extract_if)]
1675+ ///
16731676/// use std::collections::HashMap;
16741677///
16751678/// let mut map = HashMap::from([
16761679/// ("a", 1),
16771680/// ]);
16781681/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
16791682/// ```
1680- #[ stable ( feature = "hash_extract_if" , since = "1.87.0 " ) ]
1683+ #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
16811684#[ must_use = "iterators are lazy and do nothing unless consumed" ]
16821685pub struct ExtractIf < ' a , K , V , F >
16831686where
@@ -2294,7 +2297,7 @@ where
22942297 }
22952298}
22962299
2297- #[ stable ( feature = "hash_extract_if" , since = "1.87.0 " ) ]
2300+ #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
22982301impl < K , V , F > Iterator for ExtractIf < ' _ , K , V , F >
22992302where
23002303 F : FnMut ( & K , & mut V ) -> bool ,
@@ -2311,10 +2314,10 @@ where
23112314 }
23122315}
23132316
2314- #[ stable ( feature = "hash_extract_if" , since = "1.87.0 " ) ]
2317+ #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
23152318impl < K , V , F > FusedIterator for ExtractIf < ' _ , K , V , F > where F : FnMut ( & K , & mut V ) -> bool { }
23162319
2317- #[ stable ( feature = "hash_extract_if" , since = "1.87.0 " ) ]
2320+ #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
23182321impl < ' a , K , V , F > fmt:: Debug for ExtractIf < ' a , K , V , F >
23192322where
23202323 F : FnMut ( & K , & mut V ) -> bool ,
0 commit comments