Stabilize core::slice::fill
This commit is contained in:
parent
6340607aca
commit
c2281cc189
2 changed files with 1 additions and 4 deletions
|
@ -2581,14 +2581,12 @@ impl<T> [T] {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(slice_fill)]
|
||||
///
|
||||
/// let mut buf = vec![0; 10];
|
||||
/// buf.fill(1);
|
||||
/// assert_eq!(buf, vec![1; 10]);
|
||||
/// ```
|
||||
#[doc(alias = "memset")]
|
||||
#[unstable(feature = "slice_fill", issue = "70758")]
|
||||
#[stable(feature = "slice_fill", since = "1.50.0")]
|
||||
pub fn fill(&mut self, value: T)
|
||||
where
|
||||
T: Clone,
|
||||
|
|
|
@ -304,7 +304,6 @@
|
|||
#![feature(rustc_private)]
|
||||
#![feature(shrink_to)]
|
||||
#![feature(slice_concat_ext)]
|
||||
#![feature(slice_fill)]
|
||||
#![feature(slice_internals)]
|
||||
#![feature(slice_ptr_get)]
|
||||
#![feature(slice_ptr_len)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue