Skip to content

Commit 22951b7

Browse files
committed
Stabilize vec_extend_from_within
1 parent 727d101 commit 22951b7

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

library/alloc/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
#![cfg_attr(test, feature(test))]
7777
#![cfg_attr(test, feature(new_uninit))]
7878
#![feature(allocator_api)]
79-
#![feature(vec_extend_from_within)]
8079
#![feature(array_chunks)]
8180
#![feature(array_methods)]
8281
#![feature(array_windows)]

library/alloc/src/vec/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2124,8 +2124,6 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
21242124
/// ## Examples
21252125
///
21262126
/// ```
2127-
/// #![feature(vec_extend_from_within)]
2128-
///
21292127
/// let mut vec = vec![0, 1, 2, 3, 4];
21302128
///
21312129
/// vec.extend_from_within(2..);
@@ -2137,7 +2135,7 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
21372135
/// vec.extend_from_within(4..8);
21382136
/// assert_eq!(vec, [0, 1, 2, 3, 4, 2, 3, 4, 0, 1, 4, 2, 3, 4]);
21392137
/// ```
2140-
#[unstable(feature = "vec_extend_from_within", issue = "81656")]
2138+
#[stable(feature = "vec_extend_from_within", since = "1.53.0")]
21412139
pub fn extend_from_within<R>(&mut self, src: R)
21422140
where
21432141
R: RangeBounds<usize>,

library/alloc/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#![feature(vecdeque_binary_search)]
2121
#![feature(slice_group_by)]
2222
#![feature(slice_partition_dedup)]
23-
#![feature(vec_extend_from_within)]
2423
#![feature(vec_spare_capacity)]
2524
#![feature(string_remove_matches)]
2625

0 commit comments

Comments
 (0)