diff options
| author | David Tolnay <dtolnay@gmail.com> | 2021-08-08 11:36:53 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2021-08-08 11:36:53 -0700 |
| commit | 8ec5060cdd16c772fa9474540ccda3f95996a653 (patch) | |
| tree | 4b19bff7f5cd1df38f591af01f3813bccce44dd4 /library/alloc/src/vec/mod.rs | |
| parent | 4867a2122599ef376280622ad9dfa9d8e730041f (diff) | |
| download | rust-8ec5060cdd16c772fa9474540ccda3f95996a653.tar.gz rust-8ec5060cdd16c772fa9474540ccda3f95996a653.zip | |
Bump shrink_to stabilization to Rust 1.56
Diffstat (limited to 'library/alloc/src/vec/mod.rs')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 0e16a46fa2c..a660dc87cd4 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -951,7 +951,7 @@ impl<T, A: Allocator> Vec<T, A> { /// assert!(vec.capacity() >= 3); /// ``` #[cfg(not(no_global_oom_handling))] - #[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) { if self.capacity() > min_capacity { self.buf.shrink_to_fit(cmp::max(self.len, min_capacity)); |
