Bump shrink_to stabilization to Rust 1.56
This commit is contained in:
parent
4867a21225
commit
8ec5060cdd
8 changed files with 8 additions and 8 deletions
|
|
@ -677,7 +677,7 @@ where
|
|||
/// assert!(map.capacity() >= 2);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "shrink_to", since = "1.55.0")]
|
||||
#[stable(feature = "shrink_to", since = "1.56.0")]
|
||||
pub fn shrink_to(&mut self, min_capacity: usize) {
|
||||
self.base.shrink_to(min_capacity);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -478,7 +478,7 @@ where
|
|||
/// assert!(set.capacity() >= 2);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "shrink_to", since = "1.55.0")]
|
||||
#[stable(feature = "shrink_to", since = "1.56.0")]
|
||||
pub fn shrink_to(&mut self, min_capacity: usize) {
|
||||
self.base.shrink_to(min_capacity)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ impl OsString {
|
|||
/// assert!(s.capacity() >= 3);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "shrink_to", since = "1.55.0")]
|
||||
#[stable(feature = "shrink_to", since = "1.56.0")]
|
||||
pub fn shrink_to(&mut self, min_capacity: usize) {
|
||||
self.inner.shrink_to(min_capacity)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1398,7 +1398,7 @@ impl PathBuf {
|
|||
/// Invokes [`shrink_to`] on the underlying instance of [`OsString`].
|
||||
///
|
||||
/// [`shrink_to`]: OsString::shrink_to
|
||||
#[stable(feature = "shrink_to", since = "1.55.0")]
|
||||
#[stable(feature = "shrink_to", since = "1.56.0")]
|
||||
#[inline]
|
||||
pub fn shrink_to(&mut self, min_capacity: usize) {
|
||||
self.inner.shrink_to(min_capacity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue