Skip to content

Commit 4104813

Browse files
5225225Mark-Simulacrum
authored andcommitted
Destabilise entry_insert
1 parent 4982eab commit 4104813

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,6 +2462,7 @@ impl<'a, K, V> Entry<'a, K, V> {
24622462
/// # Examples
24632463
///
24642464
/// ```
2465+
/// #![feature(entry_insert)]
24652466
/// use std::collections::HashMap;
24662467
///
24672468
/// let mut map: HashMap<&str, String> = HashMap::new();
@@ -2470,7 +2471,7 @@ impl<'a, K, V> Entry<'a, K, V> {
24702471
/// assert_eq!(entry.key(), &"poneyland");
24712472
/// ```
24722473
#[inline]
2473-
#[stable(feature = "entry_insert", since = "1.59.0")]
2474+
#[unstable(feature = "entry_insert", issue = "65225")]
24742475
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
24752476
match self {
24762477
Occupied(mut entry) => {
@@ -2804,6 +2805,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
28042805
/// # Examples
28052806
///
28062807
/// ```
2808+
/// #![feature(entry_insert)]
28072809
/// use std::collections::HashMap;
28082810
/// use std::collections::hash_map::Entry;
28092811
///
@@ -2815,7 +2817,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
28152817
/// assert_eq!(map["poneyland"], 37);
28162818
/// ```
28172819
#[inline]
2818-
#[stable(feature = "entry_insert", since = "1.59.0")]
2820+
#[unstable(feature = "entry_insert", issue = "65225")]
28192821
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
28202822
let base = self.base.insert_entry(value);
28212823
OccupiedEntry { base }

0 commit comments

Comments
 (0)