Skip to content

Commit 584e88d

Browse files
authored
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.
1 parent aad4f10 commit 584e88d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/alloc/src/vec/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,7 @@ impl<T, A: Allocator> Vec<T, A> {
20432043
/// # Examples
20442044
///
20452045
/// ```
2046-
/// #![feature(vec_spare_capacity, maybe_uninit_extra)]
2046+
/// #![feature(vec_spare_capacity)]
20472047
///
20482048
/// // Allocate vector big enough for 10 elements.
20492049
/// let mut v = Vec::with_capacity(10);
@@ -2102,7 +2102,7 @@ impl<T, A: Allocator> Vec<T, A> {
21022102
/// # Examples
21032103
///
21042104
/// ```
2105-
/// #![feature(vec_split_at_spare, maybe_uninit_extra)]
2105+
/// #![feature(vec_split_at_spare)]
21062106
///
21072107
/// let mut v = vec![1, 1, 2];
21082108
///

0 commit comments

Comments
 (0)