From 584e88d41dadb955dec5ef1e5db275a0d2f42123 Mon Sep 17 00:00:00 2001 From: Shadlock0133 Date: Fri, 24 Dec 2021 23:04:10 +0100 Subject: [PATCH] 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. --- library/alloc/src/vec/mod.rs | 4 ++-- 1 file 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 Vec { /// # 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 Vec { /// # Examples /// /// ``` - /// #![feature(vec_split_at_spare, maybe_uninit_extra)] + /// #![feature(vec_split_at_spare)] /// /// let mut v = vec![1, 1, 2]; ///