@@ -683,7 +683,7 @@ impl<K, V, S> HashMap<K, V, S> {
683
683
/// ```
684
684
#[ inline]
685
685
#[ rustc_lint_query_instability]
686
- #[ stable( feature = "hash_extract_if" , since = "1.87.0 " ) ]
686
+ #[ stable( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
687
687
pub fn extract_if < F > ( & mut self , pred : F ) -> ExtractIf < ' _ , K , V , F >
688
688
where
689
689
F : FnMut ( & K , & mut V ) -> bool ,
@@ -1680,12 +1680,9 @@ impl<'a, K, V> Drain<'a, K, V> {
1680
1680
/// ]);
1681
1681
/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
1682
1682
/// ```
1683
- #[ stable( feature = "hash_extract_if" , since = "1.87.0 " ) ]
1683
+ #[ stable( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1684
1684
#[ 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 > {
1689
1686
base : base:: ExtractIf < ' a , K , V , F > ,
1690
1687
}
1691
1688
@@ -2297,7 +2294,7 @@ where
2297
2294
}
2298
2295
}
2299
2296
2300
- #[ stable( feature = "hash_extract_if" , since = "1.87.0 " ) ]
2297
+ #[ stable( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2301
2298
impl < K , V , F > Iterator for ExtractIf < ' _ , K , V , F >
2302
2299
where
2303
2300
F : FnMut ( & K , & mut V ) -> bool ,
@@ -2314,13 +2311,14 @@ where
2314
2311
}
2315
2312
}
2316
2313
2317
- #[ stable( feature = "hash_extract_if" , since = "1.87.0 " ) ]
2314
+ #[ stable( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2318
2315
impl < K , V , F > FusedIterator for ExtractIf < ' _ , K , V , F > where F : FnMut ( & K , & mut V ) -> bool { }
2319
2316
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 >
2322
2319
where
2323
- F : FnMut ( & K , & mut V ) -> bool ,
2320
+ K : fmt:: Debug ,
2321
+ V : fmt:: Debug ,
2324
2322
{
2325
2323
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2326
2324
f. debug_struct ( "ExtractIf" ) . finish_non_exhaustive ( )
0 commit comments