diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-28 05:37:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-28 05:37:54 +0200 |
| commit | 494a8a8525d957bb627293ef42713eb336210b4c (patch) | |
| tree | 64732c5f36b6ae4034229466351cffdc3d453c90 /src/libstd | |
| parent | fc53088a5cc72e7276dfc4acfef3c405c36c783a (diff) | |
| parent | c482c84142e4f4194a50c1fda4dbd311759bae41 (diff) | |
| download | rust-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.rs | 3 |
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 |
