@@ -683,7 +683,7 @@ impl<K, V, S> HashMap<K, V, S> {
683683 /// ```
684684 #[ inline]
685685 #[ rustc_lint_query_instability]
686- #[ stable( feature = "hash_extract_if" , since = "1.87.0 " ) ]
686+ #[ stable( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
687687 pub fn extract_if < F > ( & mut self , pred : F ) -> ExtractIf < ' _ , K , V , F >
688688 where
689689 F : FnMut ( & K , & mut V ) -> bool ,
@@ -1680,12 +1680,9 @@ impl<'a, K, V> Drain<'a, K, V> {
16801680/// ]);
16811681/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
16821682/// ```
1683- #[ stable( feature = "hash_extract_if" , since = "1.87.0 " ) ]
1683+ #[ stable( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
16841684#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1685- pub struct ExtractIf < ' a , K , V , F >
1686- where
1687- F : FnMut ( & K , & mut V ) -> bool ,
1688- {
1685+ pub struct ExtractIf < ' a , K , V , F > {
16891686 base : base:: ExtractIf < ' a , K , V , F > ,
16901687}
16911688
@@ -2297,7 +2294,7 @@ where
22972294 }
22982295}
22992296
2300- #[ stable( feature = "hash_extract_if" , since = "1.87.0 " ) ]
2297+ #[ stable( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
23012298impl < K , V , F > Iterator for ExtractIf < ' _ , K , V , F >
23022299where
23032300 F : FnMut ( & K , & mut V ) -> bool ,
@@ -2314,13 +2311,14 @@ where
23142311 }
23152312}
23162313
2317- #[ stable( feature = "hash_extract_if" , since = "1.87.0 " ) ]
2314+ #[ stable( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
23182315impl < K , V , F > FusedIterator for ExtractIf < ' _ , K , V , F > where F : FnMut ( & K , & mut V ) -> bool { }
23192316
2320- #[ stable( feature = "hash_extract_if" , since = "1.87.0 " ) ]
2321- impl < ' a , K , V , F > fmt:: Debug for ExtractIf < ' a , K , V , F >
2317+ #[ stable( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2318+ impl < K , V , F > fmt:: Debug for ExtractIf < ' _ , K , V , F >
23222319where
2323- F : FnMut ( & K , & mut V ) -> bool ,
2320+ K : fmt:: Debug ,
2321+ V : fmt:: Debug ,
23242322{
23252323 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
23262324 f. debug_struct ( "ExtractIf" ) . finish_non_exhaustive ( )
0 commit comments