@@ -659,7 +659,6 @@ impl<K, V, S> HashMap<K, V, S> {
659
659
/// Splitting a map into even and odd keys, reusing the original map:
660
660
///
661
661
/// ```
662
- /// #![feature(hash_extract_if)]
663
662
/// use std::collections::HashMap;
664
663
///
665
664
/// 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> {
675
674
/// ```
676
675
#[ inline]
677
676
#[ rustc_lint_query_instability]
678
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
677
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
679
678
pub fn extract_if < F > ( & mut self , pred : F ) -> ExtractIf < ' _ , K , V , F >
680
679
where
681
680
F : FnMut ( & K , & mut V ) -> bool ,
@@ -1718,16 +1717,14 @@ impl<'a, K, V> Drain<'a, K, V> {
1718
1717
/// # Example
1719
1718
///
1720
1719
/// ```
1721
- /// #![feature(hash_extract_if)]
1722
- ///
1723
1720
/// use std::collections::HashMap;
1724
1721
///
1725
1722
/// let mut map = HashMap::from([
1726
1723
/// ("a", 1),
1727
1724
/// ]);
1728
1725
/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
1729
1726
/// ```
1730
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
1727
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
1731
1728
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1732
1729
pub struct ExtractIf < ' a , K , V , F >
1733
1730
where
@@ -2742,7 +2739,7 @@ where
2742
2739
}
2743
2740
}
2744
2741
2745
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2742
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2746
2743
impl < K , V , F > Iterator for ExtractIf < ' _ , K , V , F >
2747
2744
where
2748
2745
F : FnMut ( & K , & mut V ) -> bool ,
@@ -2759,10 +2756,10 @@ where
2759
2756
}
2760
2757
}
2761
2758
2762
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2759
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2763
2760
impl < K , V , F > FusedIterator for ExtractIf < ' _ , K , V , F > where F : FnMut ( & K , & mut V ) -> bool { }
2764
2761
2765
- #[ unstable ( feature = "hash_extract_if" , issue = "59618 " ) ]
2762
+ #[ stable ( feature = "hash_extract_if" , since = "CURRENT_RUSTC_VERSION " ) ]
2766
2763
impl < ' a , K , V , F > fmt:: Debug for ExtractIf < ' a , K , V , F >
2767
2764
where
2768
2765
F : FnMut ( & K , & mut V ) -> bool ,
0 commit comments