about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTennyZhuang <zty0826@gmail.com>2021-12-11 22:54:17 +0800
committerTennyZhuang <zty0826@gmail.com>2021-12-11 22:54:17 +0800
commit2235af1a689f739843b3728d6e958d057554be09 (patch)
tree94f6c31c3cfd088ca02c3360972b042e5fe9cc2c
parentd0f8793d89a77c3a230b6fbdf16a9890087e5b2a (diff)
downloadrust-2235af1a689f739843b3728d6e958d057554be09.tar.gz
rust-2235af1a689f739843b3728d6e958d057554be09.zip
update feature gate
-rw-r--r--library/alloc/src/collections/binary_heap.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/alloc/src/collections/binary_heap.rs b/library/alloc/src/collections/binary_heap.rs
index 03645a6e05d..6fc6002d551 100644
--- a/library/alloc/src/collections/binary_heap.rs
+++ b/library/alloc/src/collections/binary_heap.rs
@@ -974,7 +974,7 @@ impl<T> BinaryHeap<T> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_binary_heap)]
+    /// #![feature(try_reserve_2)]
     /// use std::collections::BinaryHeap;
     /// use std::collections::TryReserveError;
     ///
@@ -991,7 +991,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_binary_heap", issue = "none")]
+    #[unstable(feature = "try_reserve_2", issue = "91789")]
     pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveError> {
         self.data.try_reserve_exact(additional)
     }
@@ -1010,7 +1010,7 @@ impl<T> BinaryHeap<T> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_binary_heap)]
+    /// #![feature(try_reserve_2)]
     /// use std::collections::BinaryHeap;
     /// use std::collections::TryReserveError;
     ///
@@ -1027,7 +1027,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_binary_heap", issue = "none")]
+    #[unstable(feature = "try_reserve_2", issue = "91789")]
     pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> {
         self.data.try_reserve(additional)
     }