]> git.lizzy.rs Git - rust.git/commitdiff
stabilize `hash_map_remove_entry` feature
authortinaun <tinagma@gmail.com>
Tue, 17 Apr 2018 05:06:29 +0000 (01:06 -0400)
committertinaun <tinagma@gmail.com>
Tue, 17 Apr 2018 05:22:28 +0000 (01:22 -0400)
src/libstd/collections/hash/map.rs

index 20a4f9b508d240be95e285e97fdcbb45dcfc0952..14ef8563bb06483b30d56e1665a7409cb8812bbe 100644 (file)
@@ -1379,7 +1379,6 @@ pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V>
     /// # Examples
     ///
     /// ```
-    /// #![feature(hash_map_remove_entry)]
     /// use std::collections::HashMap;
     ///
     /// # fn main() {
@@ -1389,7 +1388,7 @@ pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V>
     /// assert_eq!(map.remove(&1), None);
     /// # }
     /// ```
-    #[unstable(feature = "hash_map_remove_entry", issue = "46344")]
+    #[stable(feature = "hash_map_remove_entry", since = "1.27.0")]
     pub fn remove_entry<Q: ?Sized>(&mut self, k: &Q) -> Option<(K, V)>
         where K: Borrow<Q>,
               Q: Hash + Eq