mirror of
https://github.com/rust-lang/rust
synced 2024-10-19 23:13:41 +00:00
Bump insert_entry stabilization to Rust 1.59
This commit is contained in:
parent
09b0780719
commit
a2fd84a125
|
@ -2458,7 +2458,7 @@ pub fn and_modify<F>(self, f: F) -> Self
|
|||
/// assert_eq!(entry.key(), &"poneyland");
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "entry_insert", since = "1.58.0")]
|
||||
#[stable(feature = "entry_insert", since = "1.59.0")]
|
||||
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
|
||||
match self {
|
||||
Occupied(mut entry) => {
|
||||
|
@ -2803,7 +2803,7 @@ pub fn insert(self, value: V) -> &'a mut V {
|
|||
/// assert_eq!(map["poneyland"], 37);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "entry_insert", since = "1.58.0")]
|
||||
#[stable(feature = "entry_insert", since = "1.59.0")]
|
||||
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
|
||||
let base = self.base.insert_entry(value);
|
||||
OccupiedEntry { base }
|
||||
|
|
Loading…
Reference in a new issue