diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2022-01-17 21:07:02 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2022-01-17 21:07:02 +0000 |
| commit | e012b9a78d5cea530dc158a74ecd96e524cca4f7 (patch) | |
| tree | 784dfb53cf152907c88e6b44f04971d620543215 /library/alloc/src | |
| parent | fd20513f52b1e6a7799fd291c1a5979dd65678ac (diff) | |
| download | rust-e012b9a78d5cea530dc158a74ecd96e524cca4f7.tar.gz rust-e012b9a78d5cea530dc158a74ecd96e524cca4f7.zip | |
Stabilize vec_spare_capacity
Closes #75017
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 78f989e730d..d9c69039d7a 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -2043,8 +2043,6 @@ impl<T, A: Allocator> Vec<T, A> { /// # Examples /// /// ``` - /// #![feature(vec_spare_capacity)] - /// /// // Allocate vector big enough for 10 elements. /// let mut v = Vec::with_capacity(10); /// @@ -2061,7 +2059,7 @@ impl<T, A: Allocator> Vec<T, A> { /// /// assert_eq!(&v, &[0, 1, 2]); /// ``` - #[unstable(feature = "vec_spare_capacity", issue = "75017")] + #[stable(feature = "vec_spare_capacity", since = "1.60.0")] #[inline] pub fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] { // Note: |
