@@ -656,7 +656,6 @@ impl<K, V, S> HashMap<K, V, S> {
656
656
/// Splitting a map into even and odd keys, reusing the original map:
657
657
///
658
658
/// ```
659
- /// #![feature(hash_extract_if)]
660
659
/// use std::collections::HashMap;
661
660
///
662
661
/// 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> {
672
671
/// ```
673
672
#[ inline]
674
673
#[ rustc_lint_query_instability]
675
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
674
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
676
675
pub fn extract_if < F > ( & mut self , pred : F ) -> ExtractIf < ' _ , K , V , F >
677
676
where
678
677
F : FnMut ( & K , & mut V ) -> bool ,
@@ -1722,16 +1721,14 @@ impl<'a, K, V> Drain<'a, K, V> {
1722
1721
/// # Example
1723
1722
///
1724
1723
/// ```
1725
- /// #![feature(hash_extract_if)]
1726
- ///
1727
1724
/// use std::collections::HashMap;
1728
1725
///
1729
1726
/// let mut map = HashMap::from([
1730
1727
/// ("a", 1),
1731
1728
/// ]);
1732
1729
/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
1733
1730
/// ```
1734
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
1731
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1735
1732
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1736
1733
pub struct ExtractIf < ' a , K , V , F >
1737
1734
where
@@ -2746,7 +2743,7 @@ where
2746
2743
}
2747
2744
}
2748
2745
2749
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2746
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2750
2747
impl < K , V , F > Iterator for ExtractIf < ' _ , K , V , F >
2751
2748
where
2752
2749
F : FnMut ( & K , & mut V ) -> bool ,
@@ -2763,10 +2760,10 @@ where
2763
2760
}
2764
2761
}
2765
2762
2766
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2763
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2767
2764
impl < K , V , F > FusedIterator for ExtractIf < ' _ , K , V , F > where F : FnMut ( & K , & mut V ) -> bool { }
2768
2765
2769
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2766
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2770
2767
impl < ' a , K , V , F > fmt:: Debug for ExtractIf < ' a , K , V , F >
2771
2768
where
2772
2769
F : FnMut ( & K , & mut V ) -> bool ,
0 commit comments