@@ -2472,6 +2472,7 @@ impl<'a, K, V> Entry<'a, K, V> {
2472
2472
/// # Examples
2473
2473
///
2474
2474
/// ```
2475
+ /// #![feature(entry_insert)]
2475
2476
/// use std::collections::HashMap;
2476
2477
///
2477
2478
/// let mut map: HashMap<&str, String> = HashMap::new();
@@ -2480,7 +2481,7 @@ impl<'a, K, V> Entry<'a, K, V> {
2480
2481
/// assert_eq!(entry.key(), &"poneyland");
2481
2482
/// ```
2482
2483
#[ inline]
2483
- #[ stable ( feature = "entry_insert" , since = "1.59.0 " ) ]
2484
+ #[ unstable ( feature = "entry_insert" , issue = "65225 " ) ]
2484
2485
pub fn insert_entry ( self , value : V ) -> OccupiedEntry < ' a , K , V > {
2485
2486
match self {
2486
2487
Occupied ( mut entry) => {
@@ -2814,6 +2815,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
2814
2815
/// # Examples
2815
2816
///
2816
2817
/// ```
2818
+ /// #![feature(entry_insert)]
2817
2819
/// use std::collections::HashMap;
2818
2820
/// use std::collections::hash_map::Entry;
2819
2821
///
@@ -2825,7 +2827,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
2825
2827
/// assert_eq!(map["poneyland"], 37);
2826
2828
/// ```
2827
2829
#[ inline]
2828
- #[ stable ( feature = "entry_insert" , since = "1.59.0 " ) ]
2830
+ #[ unstable ( feature = "entry_insert" , issue = "65225 " ) ]
2829
2831
pub fn insert_entry ( self , value : V ) -> OccupiedEntry < ' a , K , V > {
2830
2832
let base = self . base . insert_entry ( value) ;
2831
2833
OccupiedEntry { base }
0 commit comments