Skip to content

Commit c2281cc

Browse files
committed
Stabilize core::slice::fill
1 parent 6340607 commit c2281cc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

library/core/src/slice/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2581,14 +2581,12 @@ impl<T> [T] {
25812581
/// # Examples
25822582
///
25832583
/// ```
2584-
/// #![feature(slice_fill)]
2585-
///
25862584
/// let mut buf = vec![0; 10];
25872585
/// buf.fill(1);
25882586
/// assert_eq!(buf, vec![1; 10]);
25892587
/// ```
25902588
#[doc(alias = "memset")]
2591-
#[unstable(feature = "slice_fill", issue = "70758")]
2589+
#[stable(feature = "slice_fill", since = "1.50.0")]
25922590
pub fn fill(&mut self, value: T)
25932591
where
25942592
T: Clone,

library/std/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@
304304
#![feature(rustc_private)]
305305
#![feature(shrink_to)]
306306
#![feature(slice_concat_ext)]
307-
#![feature(slice_fill)]
308307
#![feature(slice_internals)]
309308
#![feature(slice_ptr_get)]
310309
#![feature(slice_ptr_len)]

0 commit comments

Comments
 (0)