@@ -2462,6 +2462,7 @@ impl<'a, K, V> Entry<'a, K, V> {
2462
2462
/// # Examples
2463
2463
///
2464
2464
/// ```
2465
+ /// #![feature(entry_insert)]
2465
2466
/// use std::collections::HashMap;
2466
2467
///
2467
2468
/// let mut map: HashMap<&str, String> = HashMap::new();
@@ -2470,7 +2471,7 @@ impl<'a, K, V> Entry<'a, K, V> {
2470
2471
/// assert_eq!(entry.key(), &"poneyland");
2471
2472
/// ```
2472
2473
#[ inline]
2473
- #[ stable ( feature = "entry_insert" , since = "1.59.0 " ) ]
2474
+ #[ unstable ( feature = "entry_insert" , issue = "65225 " ) ]
2474
2475
pub fn insert_entry ( self , value : V ) -> OccupiedEntry < ' a , K , V > {
2475
2476
match self {
2476
2477
Occupied ( mut entry) => {
@@ -2804,6 +2805,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
2804
2805
/// # Examples
2805
2806
///
2806
2807
/// ```
2808
+ /// #![feature(entry_insert)]
2807
2809
/// use std::collections::HashMap;
2808
2810
/// use std::collections::hash_map::Entry;
2809
2811
///
@@ -2815,7 +2817,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
2815
2817
/// assert_eq!(map["poneyland"], 37);
2816
2818
/// ```
2817
2819
#[ inline]
2818
- #[ stable ( feature = "entry_insert" , since = "1.59.0 " ) ]
2820
+ #[ unstable ( feature = "entry_insert" , issue = "65225 " ) ]
2819
2821
pub fn insert_entry ( self , value : V ) -> OccupiedEntry < ' a , K , V > {
2820
2822
let base = self . base . insert_entry ( value) ;
2821
2823
OccupiedEntry { base }
0 commit comments