1
Fork 0

Stabilize vec_extend_from_within

This commit is contained in:
Amanieu d'Antras 2021-04-28 07:12:49 +01:00
parent 727d101561
commit 22951b7f56
3 changed files with 1 additions and 5 deletions

View file

@ -76,7 +76,6 @@
#![cfg_attr(test, feature(test))] #![cfg_attr(test, feature(test))]
#![cfg_attr(test, feature(new_uninit))] #![cfg_attr(test, feature(new_uninit))]
#![feature(allocator_api)] #![feature(allocator_api)]
#![feature(vec_extend_from_within)]
#![feature(array_chunks)] #![feature(array_chunks)]
#![feature(array_methods)] #![feature(array_methods)]
#![feature(array_windows)] #![feature(array_windows)]

View file

@ -2124,8 +2124,6 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
/// ## Examples /// ## Examples
/// ///
/// ``` /// ```
/// #![feature(vec_extend_from_within)]
///
/// let mut vec = vec![0, 1, 2, 3, 4]; /// let mut vec = vec![0, 1, 2, 3, 4];
/// ///
/// vec.extend_from_within(2..); /// vec.extend_from_within(2..);
@ -2137,7 +2135,7 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
/// vec.extend_from_within(4..8); /// vec.extend_from_within(4..8);
/// assert_eq!(vec, [0, 1, 2, 3, 4, 2, 3, 4, 0, 1, 4, 2, 3, 4]); /// assert_eq!(vec, [0, 1, 2, 3, 4, 2, 3, 4, 0, 1, 4, 2, 3, 4]);
/// ``` /// ```
#[unstable(feature = "vec_extend_from_within", issue = "81656")] #[stable(feature = "vec_extend_from_within", since = "1.53.0")]
pub fn extend_from_within<R>(&mut self, src: R) pub fn extend_from_within<R>(&mut self, src: R)
where where
R: RangeBounds<usize>, R: RangeBounds<usize>,

View file

@ -20,7 +20,6 @@
#![feature(vecdeque_binary_search)] #![feature(vecdeque_binary_search)]
#![feature(slice_group_by)] #![feature(slice_group_by)]
#![feature(slice_partition_dedup)] #![feature(slice_partition_dedup)]
#![feature(vec_extend_from_within)]
#![feature(vec_spare_capacity)] #![feature(vec_spare_capacity)]
#![feature(string_remove_matches)] #![feature(string_remove_matches)]