Skip to content

Commit b443e57

Browse files
authored
Rollup merge of #48166 - hedgehog1024:hedgehog1024-stabilize-entry_and_modify, r=alexcrichton
Stabilize 'entry_and_modify' feature Stabilize `entry_and_modify` feature introduced by #44734. Closes #44733
2 parents 562626a + 0aa753b commit b443e57

File tree

3 files changed

+2
-81
lines changed

3 files changed

+2
-81
lines changed

src/doc/unstable-book/src/library-features/entry-and-modify.md

Lines changed: 0 additions & 77 deletions
This file was deleted.

src/liballoc/btree/map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,6 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
21142114
/// # Examples
21152115
///
21162116
/// ```
2117-
/// #![feature(entry_and_modify)]
21182117
/// use std::collections::BTreeMap;
21192118
///
21202119
/// let mut map: BTreeMap<&str, usize> = BTreeMap::new();
@@ -2129,7 +2128,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
21292128
/// .or_insert(42);
21302129
/// assert_eq!(map["poneyland"], 43);
21312130
/// ```
2132-
#[unstable(feature = "entry_and_modify", issue = "44733")]
2131+
#[stable(feature = "entry_and_modify", since = "1.26.0")]
21332132
pub fn and_modify<F>(self, mut f: F) -> Self
21342133
where F: FnMut(&mut V)
21352134
{

src/libstd/collections/hash/map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,6 @@ impl<'a, K, V> Entry<'a, K, V> {
20822082
/// # Examples
20832083
///
20842084
/// ```
2085-
/// #![feature(entry_and_modify)]
20862085
/// use std::collections::HashMap;
20872086
///
20882087
/// let mut map: HashMap<&str, u32> = HashMap::new();
@@ -2097,7 +2096,7 @@ impl<'a, K, V> Entry<'a, K, V> {
20972096
/// .or_insert(42);
20982097
/// assert_eq!(map["poneyland"], 43);
20992098
/// ```
2100-
#[unstable(feature = "entry_and_modify", issue = "44733")]
2099+
#[stable(feature = "entry_and_modify", since = "1.26.0")]
21012100
pub fn and_modify<F>(self, mut f: F) -> Self
21022101
where F: FnMut(&mut V)
21032102
{

0 commit comments

Comments
 (0)