@@ -2450,7 +2450,6 @@ impl<'a, K, V> Entry<'a, K, V> {
2450
2450
/// # Examples
2451
2451
///
2452
2452
/// ```
2453
- /// #![feature(entry_insert)]
2454
2453
/// use std::collections::HashMap;
2455
2454
///
2456
2455
/// let mut map: HashMap<&str, String> = HashMap::new();
@@ -2459,7 +2458,7 @@ impl<'a, K, V> Entry<'a, K, V> {
2459
2458
/// assert_eq!(entry.key(), &"poneyland");
2460
2459
/// ```
2461
2460
#[ inline]
2462
- #[ unstable ( feature = "entry_insert" , issue = "65225 " ) ]
2461
+ #[ stable ( feature = "entry_insert" , since = "1.58.0 " ) ]
2463
2462
pub fn insert_entry ( self , value : V ) -> OccupiedEntry < ' a , K , V > {
2464
2463
match self {
2465
2464
Occupied ( mut entry) => {
@@ -2793,7 +2792,6 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
2793
2792
/// # Examples
2794
2793
///
2795
2794
/// ```
2796
- /// #![feature(entry_insert)]
2797
2795
/// use std::collections::HashMap;
2798
2796
/// use std::collections::hash_map::Entry;
2799
2797
///
@@ -2805,7 +2803,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
2805
2803
/// assert_eq!(map["poneyland"], 37);
2806
2804
/// ```
2807
2805
#[ inline]
2808
- #[ unstable ( feature = "entry_insert" , issue = "65225 " ) ]
2806
+ #[ stable ( feature = "entry_insert" , since = "1.58.0 " ) ]
2809
2807
pub fn insert_entry ( self , value : V ) -> OccupiedEntry < ' a , K , V > {
2810
2808
let base = self . base . insert_entry ( value) ;
2811
2809
OccupiedEntry { base }
0 commit comments