1
Fork 0

stabilize box_uninit_write

This commit is contained in:
Slanterns 2025-03-01 19:59:43 +08:00
parent 002da76821
commit 3786a7a908
No known key found for this signature in database
GPG key ID: 1AA37EE7FAAE433A
2 changed files with 1 additions and 4 deletions

View file

@ -937,8 +937,6 @@ impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(box_uninit_write)]
///
/// let big_box = Box::<[usize; 1024]>::new_uninit(); /// let big_box = Box::<[usize; 1024]>::new_uninit();
/// ///
/// let mut array = [0; 1024]; /// let mut array = [0; 1024];
@ -954,7 +952,7 @@ impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
/// assert_eq!(*x, i); /// assert_eq!(*x, i);
/// } /// }
/// ``` /// ```
#[unstable(feature = "box_uninit_write", issue = "129397")] #[stable(feature = "box_uninit_write", since = "CURRENT_RUSTC_VERSION")]
#[inline] #[inline]
pub fn write(mut boxed: Self, value: T) -> Box<T, A> { pub fn write(mut boxed: Self, value: T) -> Box<T, A> {
unsafe { unsafe {

View file

@ -102,7 +102,6 @@
#![feature(assert_matches)] #![feature(assert_matches)]
#![feature(async_fn_traits)] #![feature(async_fn_traits)]
#![feature(async_iterator)] #![feature(async_iterator)]
#![feature(box_uninit_write)]
#![feature(bstr)] #![feature(bstr)]
#![feature(bstr_internals)] #![feature(bstr_internals)]
#![feature(char_max_len)] #![feature(char_max_len)]