Skip to content

Commit c02cc58

Browse files
committed
stabilize box_uninit_write
1 parent 002da76 commit c02cc58

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: library/alloc/src/boxed.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,6 @@ impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
937937
/// # Examples
938938
///
939939
/// ```
940-
/// #![feature(box_uninit_write)]
941-
///
942940
/// let big_box = Box::<[usize; 1024]>::new_uninit();
943941
///
944942
/// let mut array = [0; 1024];
@@ -954,7 +952,7 @@ impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
954952
/// assert_eq!(*x, i);
955953
/// }
956954
/// ```
957-
#[unstable(feature = "box_uninit_write", issue = "129397")]
955+
#[unstable(feature = "box_uninit_write", since = "CURRENT_RUSTC_VERSION")]
958956
#[inline]
959957
pub fn write(mut boxed: Self, value: T) -> Box<T, A> {
960958
unsafe {

Diff for: library/alloc/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
#![feature(assert_matches)]
103103
#![feature(async_fn_traits)]
104104
#![feature(async_iterator)]
105-
#![feature(box_uninit_write)]
106105
#![feature(bstr)]
107106
#![feature(bstr_internals)]
108107
#![feature(char_max_len)]

0 commit comments

Comments
 (0)