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/string.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/string.rs')
| -rw-r--r-- | library/alloc/src/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index f3f589a433a..1b7edf65c82 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -1110,7 +1110,7 @@ impl String { /// ``` #[cfg(not(no_global_oom_handling))] #[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.vec.shrink_to(min_capacity) } |
