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
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(slice_fill)]
|
|
||||||
///
|
|
||||||
/// let mut buf = vec![0; 10];
|
/// let mut buf = vec![0; 10];
|
||||||
/// buf.fill(1);
|
/// buf.fill(1);
|
||||||
/// assert_eq!(buf, vec![1; 10]);
|
/// assert_eq!(buf, vec![1; 10]);
|
||||||
/// ```
|
/// ```
|
||||||
#[doc(alias = "memset")]
|
#[doc(alias = "memset")]
|
||||||
#[unstable(feature = "slice_fill", issue = "70758")]
|
#[stable(feature = "slice_fill", since = "1.50.0")]
|
||||||
pub fn fill(&mut self, value: T)
|
pub fn fill(&mut self, value: T)
|
||||||
where
|
where
|
||||||
T: Clone,
|
T: Clone,
|
||||||
|
|
|
@ -304,7 +304,6 @@
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
#![feature(shrink_to)]
|
#![feature(shrink_to)]
|
||||||
#![feature(slice_concat_ext)]
|
#![feature(slice_concat_ext)]
|
||||||
#![feature(slice_fill)]
|
|
||||||
#![feature(slice_internals)]
|
#![feature(slice_internals)]
|
||||||
#![feature(slice_ptr_get)]
|
#![feature(slice_ptr_get)]
|
||||||
#![feature(slice_ptr_len)]
|
#![feature(slice_ptr_len)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue