std: Stabilize feature try_reserve_2
Signed-off-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
@@ -1520,7 +1520,7 @@ impl PathBuf {
|
||||
/// 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 @@ impl PathBuf {
|
||||
/// 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)
|
||||
|
||||
Reference in New Issue
Block a user