Skip to content

Commit ba73022

Browse files
committed
Stabilize entry_insert
1 parent 283ce13 commit ba73022

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

std/src/collections/hash/map.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -2754,7 +2754,6 @@ impl<'a, K, V> Entry<'a, K, V> {
27542754
/// # Examples
27552755
///
27562756
/// ```
2757-
/// #![feature(entry_insert)]
27582757
/// use std::collections::HashMap;
27592758
///
27602759
/// let mut map: HashMap<&str, String> = HashMap::new();
@@ -2763,7 +2762,7 @@ impl<'a, K, V> Entry<'a, K, V> {
27632762
/// assert_eq!(entry.key(), &"poneyland");
27642763
/// ```
27652764
#[inline]
2766-
#[unstable(feature = "entry_insert", issue = "65225")]
2765+
#[stable(feature = "entry_insert", since = "CURRENT_RUSTC_VERSION")]
27672766
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
27682767
match self {
27692768
Occupied(mut entry) => {
@@ -3097,7 +3096,6 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
30973096
/// # Examples
30983097
///
30993098
/// ```
3100-
/// #![feature(entry_insert)]
31013099
/// use std::collections::HashMap;
31023100
/// use std::collections::hash_map::Entry;
31033101
///
@@ -3109,7 +3107,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
31093107
/// assert_eq!(map["poneyland"], 37);
31103108
/// ```
31113109
#[inline]
3112-
#[unstable(feature = "entry_insert", issue = "65225")]
3110+
#[stable(feature = "entry_insert", since = "CURRENT_RUSTC_VERSION")]
31133111
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
31143112
let base = self.base.insert_entry(value);
31153113
OccupiedEntry { base }

0 commit comments

Comments
 (0)