Skip to content

Commit a312b47

Browse files
committed
Marked Entry::replace as unstable.
1 parent e9f01bc commit a312b47

File tree

1 file changed

+2
-1
lines changed
  • src/libstd/collections/hash

1 file changed

+2
-1
lines changed

src/libstd/collections/hash/map.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2167,6 +2167,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
21672167
/// # Examples
21682168
///
21692169
/// ```
2170+
/// # #![feature(map_entry_replace)]
21702171
/// use std::collections::HashMap;
21712172
/// use std::collections::hash_map::Entry;
21722173
///
@@ -2182,7 +2183,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
21822183
/// assert_eq!(map.get("poneyland"), Some(&16));
21832184
///
21842185
/// ```
2185-
#[stable(feature = "rust1", since = "1.20.0")]
2186+
#[unstable(feature = "map_entry_replace", issue = "44286")]
21862187
pub fn replace(mut self, value: V) -> (K, V) {
21872188
let (old_key, old_value) = self.elem.read_mut();
21882189

0 commit comments

Comments
 (0)