summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorXuanwo <github@xuanwo.io>2022-03-28 10:01:59 +0800
committerXuanwo <github@xuanwo.io>2022-06-16 09:30:34 +0800
commit324286f1019bcf9abef19543d4bb8749d9f91ed9 (patch)
tree563c5a8e7457e9ce4d54d5902217792e30c54145 /library/alloc/src
parentb31f9cc22bcd720b37ddf927afe378108a5b9a54 (diff)
downloadrust-324286f1019bcf9abef19543d4bb8749d9f91ed9.tar.gz
rust-324286f1019bcf9abef19543d4bb8749d9f91ed9.zip
std: Stabilize feature try_reserve_2
Signed-off-by: Xuanwo <github@xuanwo.io>
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/collections/binary_heap.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/library/alloc/src/collections/binary_heap.rs b/library/alloc/src/collections/binary_heap.rs
index 839088eac21..3706300dcfe 100644
--- a/library/alloc/src/collections/binary_heap.rs
+++ b/library/alloc/src/collections/binary_heap.rs
@@ -978,7 +978,6 @@ impl<T> BinaryHeap<T> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_2)]
     /// use std::collections::BinaryHeap;
     /// use std::collections::TryReserveError;
     ///
@@ -995,7 +994,7 @@ impl<T> BinaryHeap<T> {
     /// }
     /// # find_max_slow(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
     /// ```
-    #[unstable(feature = "try_reserve_2", issue = "91789")]
+    #[stable(feature = "try_reserve_2", since = "1.63.0")]
     pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveError> {
         self.data.try_reserve_exact(additional)
     }
@@ -1014,7 +1013,6 @@ impl<T> BinaryHeap<T> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_2)]
     /// use std::collections::BinaryHeap;
     /// use std::collections::TryReserveError;
     ///
@@ -1031,7 +1029,7 @@ impl<T> BinaryHeap<T> {
     /// }
     /// # find_max_slow(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
     /// ```
-    #[unstable(feature = "try_reserve_2", issue = "91789")]
+    #[stable(feature = "try_reserve_2", since = "1.63.0")]
     pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> {
         self.data.try_reserve(additional)
     }