diff options
| author | Félix Saparelli <felix@passcod.name> | 2021-10-28 03:12:15 +1300 |
|---|---|---|
| committer | Félix Saparelli <felix@passcod.name> | 2021-10-28 03:12:15 +1300 |
| commit | 09b0780719d740f116af7aff6647d18051ff0b06 (patch) | |
| tree | 08d2bd5ea19b50c6cad49981f35a1cc024b16967 | |
| parent | 9c8e88b97353d18a422ec9b67ac06da47bdc632e (diff) | |
| download | rust-09b0780719d740f116af7aff6647d18051ff0b06.tar.gz rust-09b0780719d740f116af7aff6647d18051ff0b06.zip | |
Stabilise entry_insert
Signed-off-by: Félix Saparelli <felix@passcod.name>
| -rw-r--r-- | library/std/src/collections/hash/map.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs index 7851c5bf5fb..e72f8ff32ee 100644 --- a/library/std/src/collections/hash/map.rs +++ b/library/std/src/collections/hash/map.rs @@ -2450,7 +2450,6 @@ impl<'a, K, V> Entry<'a, K, V> { /// # Examples /// /// ``` - /// #![feature(entry_insert)] /// use std::collections::HashMap; /// /// let mut map: HashMap<&str, String> = HashMap::new(); @@ -2459,7 +2458,7 @@ impl<'a, K, V> Entry<'a, K, V> { /// assert_eq!(entry.key(), &"poneyland"); /// ``` #[inline] - #[unstable(feature = "entry_insert", issue = "65225")] + #[stable(feature = "entry_insert", since = "1.58.0")] pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> { match self { Occupied(mut entry) => { @@ -2793,7 +2792,6 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> { /// # Examples /// /// ``` - /// #![feature(entry_insert)] /// use std::collections::HashMap; /// use std::collections::hash_map::Entry; /// @@ -2805,7 +2803,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> { /// assert_eq!(map["poneyland"], 37); /// ``` #[inline] - #[unstable(feature = "entry_insert", issue = "65225")] + #[stable(feature = "entry_insert", since = "1.58.0")] pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> { let base = self.base.insert_entry(value); OccupiedEntry { base } |
