Skip to content

Commit 21d36e0

Browse files
authored
Rollup merge of #79213 - yoshuawuyts:stabilize-slice-fill, r=m-ou-se
Stabilize `core::slice::fill` Tracking issue #70758 Stabilizes the `core::slice::fill` API in Rust 1.50, adding a `memset` doc alias so people coming from C/C++ looking for this operation can find it in the docs. This API hasn't seen any changes since we changed the signature in #71165, and it seems like the right time to propose stabilization. Thanks! r? `@m-ou-se`
2 parents 2c308b9 + c2281cc commit 21d36e0

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)