diff options
| author | Shadlock0133 <tomek-kubel2@wp.pl> | 2021-12-24 23:04:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-24 23:04:10 +0100 |
| commit | 584e88d41dadb955dec5ef1e5db275a0d2f42123 (patch) | |
| tree | efcf3e639fbca2e2f91978a6df83f92fbe92fc4b /library/alloc/src/vec/mod.rs | |
| parent | aad4f1039fd5d6bf961ed08eebc6eb69b577f1be (diff) | |
| download | rust-584e88d41dadb955dec5ef1e5db275a0d2f42123.tar.gz rust-584e88d41dadb955dec5ef1e5db275a0d2f42123.zip | |
Remove `maybe_uninit_extra` feature from Vec docs
In `Vec`, two doc tests are using `MaybeUninit::write` , stabilized in 1.55. This makes docs' usage of `maybe_uninit_extra` feature unnecessary.
Diffstat (limited to 'library/alloc/src/vec/mod.rs')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 16df2931080..2863da05932 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -2043,7 +2043,7 @@ impl<T, A: Allocator> Vec<T, A> { /// # Examples /// /// ``` - /// #![feature(vec_spare_capacity, maybe_uninit_extra)] + /// #![feature(vec_spare_capacity)] /// /// // Allocate vector big enough for 10 elements. /// let mut v = Vec::with_capacity(10); @@ -2102,7 +2102,7 @@ impl<T, A: Allocator> Vec<T, A> { /// # Examples /// /// ``` - /// #![feature(vec_split_at_spare, maybe_uninit_extra)] + /// #![feature(vec_split_at_spare)] /// /// let mut v = vec![1, 1, 2]; /// |
