@@ -290,8 +290,6 @@ impl<T> Box<T> {
290290/// # Examples 
291291/// 
292292/// ``` 
293- /// #![feature(new_zeroed_alloc)] 
294- /// 
295293/// let zero = Box::<u32>::new_zeroed(); 
296294/// let zero = unsafe { zero.assume_init() }; 
297295/// 
@@ -301,7 +299,7 @@ impl<T> Box<T> {
301299/// [zeroed]: mem::MaybeUninit::zeroed 
302300#[ cfg( not( no_global_oom_handling) ) ]  
303301    #[ inline]  
304-     #[ unstable ( feature = "new_zeroed_alloc" ,  issue  = "129396 " ) ]  
302+     #[ stable ( feature = "new_zeroed_alloc" ,  since  = "CURRENT_RUSTC_VERSION " ) ]  
305303    #[ must_use]  
306304    pub  fn  new_zeroed ( )  -> Box < mem:: MaybeUninit < T > >  { 
307305        Self :: new_zeroed_in ( Global ) 
@@ -358,7 +356,6 @@ impl<T> Box<T> {
358356/// # Ok::<(), std::alloc::AllocError>(()) 
359357/// ``` 
360358#[ unstable( feature = "allocator_api" ,  issue = "32838" ) ]  
361-     // #[unstable(feature = "new_uninit", issue = "63291")] 
362359    #[ inline]  
363360    pub  fn  try_new_uninit ( )  -> Result < Box < mem:: MaybeUninit < T > > ,  AllocError >  { 
364361        Box :: try_new_uninit_in ( Global ) 
@@ -384,7 +381,6 @@ impl<T> Box<T> {
384381/// 
385382/// [zeroed]: mem::MaybeUninit::zeroed 
386383#[ unstable( feature = "allocator_api" ,  issue = "32838" ) ]  
387-     // #[unstable(feature = "new_uninit", issue = "63291")] 
388384    #[ inline]  
389385    pub  fn  try_new_zeroed ( )  -> Result < Box < mem:: MaybeUninit < T > > ,  AllocError >  { 
390386        Box :: try_new_zeroed_in ( Global ) 
@@ -463,7 +459,6 @@ impl<T, A: Allocator> Box<T, A> {
463459#[ unstable( feature = "allocator_api" ,  issue = "32838" ) ]  
464460    #[ cfg( not( no_global_oom_handling) ) ]  
465461    #[ must_use]  
466-     // #[unstable(feature = "new_uninit", issue = "63291")] 
467462    pub  fn  new_uninit_in ( alloc :  A )  -> Box < mem:: MaybeUninit < T > ,  A > 
468463    where 
469464        A :  Allocator , 
@@ -496,7 +491,6 @@ impl<T, A: Allocator> Box<T, A> {
496491/// # Ok::<(), std::alloc::AllocError>(()) 
497492/// ``` 
498493#[ unstable( feature = "allocator_api" ,  issue = "32838" ) ]  
499-     // #[unstable(feature = "new_uninit", issue = "63291")] 
500494    pub  fn  try_new_uninit_in ( alloc :  A )  -> Result < Box < mem:: MaybeUninit < T > ,  A > ,  AllocError > 
501495    where 
502496        A :  Allocator , 
@@ -532,7 +526,6 @@ impl<T, A: Allocator> Box<T, A> {
532526/// [zeroed]: mem::MaybeUninit::zeroed 
533527#[ unstable( feature = "allocator_api" ,  issue = "32838" ) ]  
534528    #[ cfg( not( no_global_oom_handling) ) ]  
535-     // #[unstable(feature = "new_uninit", issue = "63291")] 
536529    #[ must_use]  
537530    pub  fn  new_zeroed_in ( alloc :  A )  -> Box < mem:: MaybeUninit < T > ,  A > 
538531    where 
@@ -570,7 +563,6 @@ impl<T, A: Allocator> Box<T, A> {
570563/// 
571564/// [zeroed]: mem::MaybeUninit::zeroed 
572565#[ unstable( feature = "allocator_api" ,  issue = "32838" ) ]  
573-     // #[unstable(feature = "new_uninit", issue = "63291")] 
574566    pub  fn  try_new_zeroed_in ( alloc :  A )  -> Result < Box < mem:: MaybeUninit < T > ,  A > ,  AllocError > 
575567    where 
576568        A :  Allocator , 
@@ -660,8 +652,6 @@ impl<T> Box<[T]> {
660652/// # Examples 
661653/// 
662654/// ``` 
663- /// #![feature(new_zeroed_alloc)] 
664- /// 
665655/// let values = Box::<[u32]>::new_zeroed_slice(3); 
666656/// let values = unsafe { values.assume_init() }; 
667657/// 
@@ -670,7 +660,7 @@ impl<T> Box<[T]> {
670660/// 
671661/// [zeroed]: mem::MaybeUninit::zeroed 
672662#[ cfg( not( no_global_oom_handling) ) ]  
673-     #[ unstable ( feature = "new_zeroed_alloc" ,  issue  = "129396 " ) ]  
663+     #[ stable ( feature = "new_zeroed_alloc" ,  since  = "CURRENT_RUSTC_VERSION " ) ]  
674664    #[ must_use]  
675665    pub  fn  new_zeroed_slice ( len :  usize )  -> Box < [ mem:: MaybeUninit < T > ] >  { 
676666        unsafe  {  RawVec :: with_capacity_zeroed ( len) . into_box ( len)  } 
@@ -785,7 +775,6 @@ impl<T, A: Allocator> Box<[T], A> {
785775/// ``` 
786776#[ cfg( not( no_global_oom_handling) ) ]  
787777    #[ unstable( feature = "allocator_api" ,  issue = "32838" ) ]  
788-     // #[unstable(feature = "new_uninit", issue = "63291")] 
789778    #[ must_use]  
790779    pub  fn  new_uninit_slice_in ( len :  usize ,  alloc :  A )  -> Box < [ mem:: MaybeUninit < T > ] ,  A >  { 
791780        unsafe  {  RawVec :: with_capacity_in ( len,  alloc) . into_box ( len)  } 
@@ -813,7 +802,6 @@ impl<T, A: Allocator> Box<[T], A> {
813802/// [zeroed]: mem::MaybeUninit::zeroed 
814803#[ cfg( not( no_global_oom_handling) ) ]  
815804    #[ unstable( feature = "allocator_api" ,  issue = "32838" ) ]  
816-     // #[unstable(feature = "new_uninit", issue = "63291")] 
817805    #[ must_use]  
818806    pub  fn  new_zeroed_slice_in ( len :  usize ,  alloc :  A )  -> Box < [ mem:: MaybeUninit < T > ] ,  A >  { 
819807        unsafe  {  RawVec :: with_capacity_zeroed_in ( len,  alloc) . into_box ( len)  } 
0 commit comments