about summary refs log tree commit diff
path: root/src/liballoc/btree
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-05-26 11:11:17 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-06-10 12:59:12 +0200
commit861c7cb9fd37fc171f80a9f0b58f995ad67c6df0 (patch)
tree52274bc0c3d3862afde376548c0bbf08f3ff4c7c /src/liballoc/btree
parentb4d836c98bf9fec7ab3bddd559bab1240240a9d7 (diff)
downloadrust-861c7cb9fd37fc171f80a9f0b58f995ad67c6df0.tar.gz
rust-861c7cb9fd37fc171f80a9f0b58f995ad67c6df0.zip
Stabilize entry-or-default
Diffstat (limited to 'src/liballoc/btree')
-rw-r--r--src/liballoc/btree/map.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/btree/map.rs b/src/liballoc/btree/map.rs
index 9b6f91c039f..e6e454446e2 100644
--- a/src/liballoc/btree/map.rs
+++ b/src/liballoc/btree/map.rs
@@ -2184,14 +2184,13 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
 }
 
 impl<'a, K: Ord, V: Default> Entry<'a, K, V> {
-    #[unstable(feature = "entry_or_default", issue = "44324")]
+    #[stable(feature = "entry_or_default", since = "1.28.0")]
     /// Ensures a value is in the entry by inserting the default value if empty,
     /// and returns a mutable reference to the value in the entry.
     ///
     /// # Examples
     ///
     /// ```
-    /// #![feature(entry_or_default)]
     /// # fn main() {
     /// use std::collections::BTreeMap;
     ///