Update rustc version that or_insert_with_key landed
This commit is contained in:
parent
c2de8fe294
commit
866ef87d3f
@ -132,7 +132,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
|
||||
/// assert_eq!(map["poneyland"], 9);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "or_insert_with_key", since = "1.49.0")]
|
||||
#[stable(feature = "or_insert_with_key", since = "1.50.0")]
|
||||
pub fn or_insert_with_key<F: FnOnce(&K) -> V>(self, default: F) -> &'a mut V {
|
||||
match self {
|
||||
Occupied(entry) => entry.into_mut(),
|
||||
|
@ -2238,7 +2238,7 @@ impl<'a, K, V> Entry<'a, K, V> {
|
||||
/// assert_eq!(map["poneyland"], 9);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "or_insert_with_key", since = "1.49.0")]
|
||||
#[stable(feature = "or_insert_with_key", since = "1.50.0")]
|
||||
pub fn or_insert_with_key<F: FnOnce(&K) -> V>(self, default: F) -> &'a mut V {
|
||||
match self {
|
||||
Occupied(entry) => entry.into_mut(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user