about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-27 21:42:28 +0100
committerGitHub <noreply@github.com>2021-12-27 21:42:28 +0100
commit4d8ba2193ffbbbb5f592ae70793cfea6e21d9c5a (patch)
tree836bd8adaa31d2e650fa2a06db7b69107b3a41c3
parenta11414d62ec472f1c1cd8a5cd6e21f056fb1af0c (diff)
parent584e88d41dadb955dec5ef1e5db275a0d2f42123 (diff)
downloadrust-4d8ba2193ffbbbb5f592ae70793cfea6e21d9c5a.tar.gz
rust-4d8ba2193ffbbbb5f592ae70793cfea6e21d9c5a.zip
Rollup merge of #92264 - Shadlock0133:patch-1, r=the8472
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.
-rw-r--r--library/alloc/src/vec/mod.rs4
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];
     ///