about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2019-09-27 11:21:57 +0000
committerLzu Tao <taolzu@gmail.com>2019-09-27 11:21:57 +0000
commitc482c84142e4f4194a50c1fda4dbd311759bae41 (patch)
treeda95a479948dae27de6cb7a8a138ba9610bf58ae /src/libstd
parent59367b074f1523353dddefa678ffe3cac9fd4e50 (diff)
downloadrust-c482c84142e4f4194a50c1fda4dbd311759bae41.tar.gz
rust-c482c84142e4f4194a50c1fda4dbd311759bae41.zip
Stabilize map_get_key_value feature
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/map.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index a0538986a22..69abbde9e6e 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -714,7 +714,6 @@ where
     /// # Examples
     ///
     /// ```
-    /// #![feature(map_get_key_value)]
     /// use std::collections::HashMap;
     ///
     /// let mut map = HashMap::new();
@@ -722,7 +721,7 @@ where
     /// assert_eq!(map.get_key_value(&1), Some((&1, &"a")));
     /// assert_eq!(map.get_key_value(&2), None);
     /// ```
-    #[unstable(feature = "map_get_key_value", issue = "49347")]
+    #[stable(feature = "map_get_key_value", since = "1.40.0")]
     #[inline]
     pub fn get_key_value<Q: ?Sized>(&self, k: &Q) -> Option<(&K, &V)>
     where