Skip to content

Commit 866ef87

Browse files
committed
Update rustc version that or_insert_with_key landed
1 parent c2de8fe commit 866ef87

File tree

2 files changed

+2
-2
lines changed
  • library

2 files changed

+2
-2
lines changed

library/alloc/src/collections/btree/map/entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
132132
/// assert_eq!(map["poneyland"], 9);
133133
/// ```
134134
#[inline]
135-
#[stable(feature = "or_insert_with_key", since = "1.49.0")]
135+
#[stable(feature = "or_insert_with_key", since = "1.50.0")]
136136
pub fn or_insert_with_key<F: FnOnce(&K) -> V>(self, default: F) -> &'a mut V {
137137
match self {
138138
Occupied(entry) => entry.into_mut(),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ impl<'a, K, V> Entry<'a, K, V> {
22382238
/// assert_eq!(map["poneyland"], 9);
22392239
/// ```
22402240
#[inline]
2241-
#[stable(feature = "or_insert_with_key", since = "1.49.0")]
2241+
#[stable(feature = "or_insert_with_key", since = "1.50.0")]
22422242
pub fn or_insert_with_key<F: FnOnce(&K) -> V>(self, default: F) -> &'a mut V {
22432243
match self {
22442244
Occupied(entry) => entry.into_mut(),

0 commit comments

Comments
 (0)