about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-28 05:37:54 +0200
committerGitHub <noreply@github.com>2019-09-28 05:37:54 +0200
commit494a8a8525d957bb627293ef42713eb336210b4c (patch)
tree64732c5f36b6ae4034229466351cffdc3d453c90 /src/libstd
parentfc53088a5cc72e7276dfc4acfef3c405c36c783a (diff)
parentc482c84142e4f4194a50c1fda4dbd311759bae41 (diff)
downloadrust-494a8a8525d957bb627293ef42713eb336210b4c.tar.gz
rust-494a8a8525d957bb627293ef42713eb336210b4c.zip
Rollup merge of #64836 - lzutao:stabilize-map_get_key_value, r=SimonSapin
Stabilize map_get_key_value feature

FCP done in https://github.com/rust-lang/rust/issues/49347#issuecomment-521728031
r? @SimonSapin
Closes #49347
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