diff options
| author | Jeroen Bollen <contact@jeroenbollen.eu> | 2017-09-03 20:16:20 +0200 |
|---|---|---|
| committer | Jeroen Bollen <contact@jeroenbollen.eu> | 2017-09-03 20:16:20 +0200 |
| commit | a312b4769808f69607377c8e00a5436c31edf67d (patch) | |
| tree | 05746e0f7ff91f1ef6d97d196d41c35cdaca89b6 /src/libstd/collections | |
| parent | e9f01bcf68b7f01c4b05422068adb3872f68cbaf (diff) | |
| download | rust-a312b4769808f69607377c8e00a5436c31edf67d.tar.gz rust-a312b4769808f69607377c8e00a5436c31edf67d.zip | |
Marked `Entry::replace` as unstable.
Diffstat (limited to 'src/libstd/collections')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 6eb6f892f80..81d79493f08 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -2167,6 +2167,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> { /// # Examples /// /// ``` + /// # #![feature(map_entry_replace)] /// use std::collections::HashMap; /// use std::collections::hash_map::Entry; /// @@ -2182,7 +2183,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> { /// assert_eq!(map.get("poneyland"), Some(&16)); /// /// ``` - #[stable(feature = "rust1", since = "1.20.0")] + #[unstable(feature = "map_entry_replace", issue = "44286")] pub fn replace(mut self, value: V) -> (K, V) { let (old_key, old_value) = self.elem.read_mut(); |
