]> git.lizzy.rs Git - rust.git/commitdiff
update feature gate
authorTennyZhuang <zty0826@gmail.com>
Sat, 11 Dec 2021 14:54:17 +0000 (22:54 +0800)
committerTennyZhuang <zty0826@gmail.com>
Sat, 11 Dec 2021 14:54:17 +0000 (22:54 +0800)
library/alloc/src/collections/binary_heap.rs

index 03645a6e05da99ba7190b623aed1680fe7f54b07..6fc6002d551be633b48d8f2401531c09ef1efe3c 100644 (file)
@@ -974,7 +974,7 @@ pub fn reserve(&mut self, additional: usize) {
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_binary_heap)]
+    /// #![feature(try_reserve_2)]
     /// use std::collections::BinaryHeap;
     /// use std::collections::TryReserveError;
     ///
@@ -991,7 +991,7 @@ pub fn reserve(&mut self, additional: usize) {
     /// }
     /// # 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 @@ pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveE
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_binary_heap)]
+    /// #![feature(try_reserve_2)]
     /// use std::collections::BinaryHeap;
     /// use std::collections::TryReserveError;
     ///
@@ -1027,7 +1027,7 @@ pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveE
     /// }
     /// # 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)
     }