diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-18 04:42:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 04:42:11 +0100 |
| commit | 83b1a9452ac01291ccc45b226e3e7ac37e31a0f8 (patch) | |
| tree | 54bc8607d68771ddf28481e37e5619a1fd8c1056 /library/alloc/src | |
| parent | b8c544de71016e86dc0b9f6718fb59b4d59e51b2 (diff) | |
| parent | e012b9a78d5cea530dc158a74ecd96e524cca4f7 (diff) | |
Rollup merge of #93016 - Amanieu:vec_spare_capacity, r=Mark-Simulacrum
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 16ba5c008cd..bd3262b51d4 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -2051,8 +2051,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); /// @@ -2069,7 +2067,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: |
