Skip to content

Commit 09b0780

Browse files
committed
Stabilise entry_insert
Signed-off-by: Félix Saparelli <[email protected]>
1 parent 9c8e88b commit 09b0780

File tree

1 file changed

+2
-4
lines changed
  • library/std/src/collections/hash

1 file changed

+2
-4
lines changed

library/std/src/collections/hash/map.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,7 +2450,6 @@ impl<'a, K, V> Entry<'a, K, V> {
24502450
/// # Examples
24512451
///
24522452
/// ```
2453-
/// #![feature(entry_insert)]
24542453
/// use std::collections::HashMap;
24552454
///
24562455
/// let mut map: HashMap<&str, String> = HashMap::new();
@@ -2459,7 +2458,7 @@ impl<'a, K, V> Entry<'a, K, V> {
24592458
/// assert_eq!(entry.key(), &"poneyland");
24602459
/// ```
24612460
#[inline]
2462-
#[unstable(feature = "entry_insert", issue = "65225")]
2461+
#[stable(feature = "entry_insert", since = "1.58.0")]
24632462
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
24642463
match self {
24652464
Occupied(mut entry) => {
@@ -2793,7 +2792,6 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
27932792
/// # Examples
27942793
///
27952794
/// ```
2796-
/// #![feature(entry_insert)]
27972795
/// use std::collections::HashMap;
27982796
/// use std::collections::hash_map::Entry;
27992797
///
@@ -2805,7 +2803,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
28052803
/// assert_eq!(map["poneyland"], 37);
28062804
/// ```
28072805
#[inline]
2808-
#[unstable(feature = "entry_insert", issue = "65225")]
2806+
#[stable(feature = "entry_insert", since = "1.58.0")]
28092807
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
28102808
let base = self.base.insert_entry(value);
28112809
OccupiedEntry { base }

0 commit comments

Comments
 (0)