]> git.lizzy.rs Git - rust.git/commitdiff
std: Stabilize feature try_reserve_2
authorXuanwo <github@xuanwo.io>
Mon, 28 Mar 2022 02:01:59 +0000 (10:01 +0800)
committerXuanwo <github@xuanwo.io>
Thu, 16 Jun 2022 01:30:34 +0000 (09:30 +0800)
Signed-off-by: Xuanwo <github@xuanwo.io>
library/alloc/src/collections/binary_heap.rs
library/std/src/ffi/os_str.rs
library/std/src/path.rs

index 839088eac21eadf84207b3727f413458210aaa8b..3706300dcfeb717e53897d01fca200d0b9b8eb62 100644 (file)
@@ -978,7 +978,6 @@ pub fn reserve(&mut self, additional: usize) {
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_2)]
     /// use std::collections::BinaryHeap;
     /// use std::collections::TryReserveError;
     ///
@@ -995,7 +994,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_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 @@ pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveE
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_2)]
     /// use std::collections::BinaryHeap;
     /// use std::collections::TryReserveError;
     ///
@@ -1031,7 +1029,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_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)
     }
index 247bdd954589c1625bad8f509db909580eeeaa1a..bdc44771643a58d0c5bbb56ff966839729fffbf9 100644 (file)
@@ -280,7 +280,6 @@ pub fn reserve(&mut self, additional: usize) {
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_2)]
     /// use std::ffi::{OsStr, OsString};
     /// use std::collections::TryReserveError;
     ///
@@ -297,7 +296,7 @@ pub fn reserve(&mut self, additional: usize) {
     /// }
     /// # process_data("123").expect("why is the test harness OOMing on 3 bytes?");
     /// ```
-    #[unstable(feature = "try_reserve_2", issue = "91789")]
+    #[stable(feature = "try_reserve_2", since = "1.63.0")]
     #[inline]
     pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> {
         self.inner.try_reserve(additional)
@@ -348,7 +347,6 @@ pub fn reserve_exact(&mut self, additional: usize) {
     /// # Examples
     ///
     /// ```
-    /// #![feature(try_reserve_2)]
     /// use std::ffi::{OsStr, OsString};
     /// use std::collections::TryReserveError;
     ///
@@ -365,7 +363,7 @@ pub fn reserve_exact(&mut self, additional: usize) {
     /// }
     /// # process_data("123").expect("why is the test harness OOMing on 3 bytes?");
     /// ```
-    #[unstable(feature = "try_reserve_2", issue = "91789")]
+    #[stable(feature = "try_reserve_2", since = "1.63.0")]
     #[inline]
     pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveError> {
         self.inner.try_reserve_exact(additional)
index 36d6469c02d31e1f46e4c3e1686879e357ffa468..6bbc8f55ace35552c4d9b6c36776190613bcc5ed 100644 (file)
@@ -1520,7 +1520,7 @@ pub fn reserve(&mut self, additional: usize) {
     /// Invokes [`try_reserve`] on the underlying instance of [`OsString`].
     ///
     /// [`try_reserve`]: OsString::try_reserve
-    #[unstable(feature = "try_reserve_2", issue = "91789")]
+    #[stable(feature = "try_reserve_2", since = "1.63.0")]
     #[inline]
     pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> {
         self.inner.try_reserve(additional)
@@ -1538,7 +1538,7 @@ pub fn reserve_exact(&mut self, additional: usize) {
     /// Invokes [`try_reserve_exact`] on the underlying instance of [`OsString`].
     ///
     /// [`try_reserve_exact`]: OsString::try_reserve_exact
-    #[unstable(feature = "try_reserve_2", issue = "91789")]
+    #[stable(feature = "try_reserve_2", since = "1.63.0")]
     #[inline]
     pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveError> {
         self.inner.try_reserve_exact(additional)