@@ -542,6 +542,7 @@ impl<T> Arc<T> {
542542 /// # Examples
543543 ///
544544 /// ```
545+ /// #![feature(new_zeroed_alloc)]
545546 /// #![feature(new_uninit)]
546547 ///
547548 /// use std::sync::Arc;
@@ -555,7 +556,7 @@ impl<T> Arc<T> {
555556 /// [zeroed]: mem::MaybeUninit::zeroed
556557 #[ cfg( not( no_global_oom_handling) ) ]
557558 #[ inline]
558- #[ unstable( feature = "new_uninit " , issue = "63291 " ) ]
559+ #[ unstable( feature = "new_zeroed_alloc " , issue = "129396 " ) ]
559560 #[ must_use]
560561 pub fn new_zeroed ( ) -> Arc < mem:: MaybeUninit < T > > {
561562 unsafe {
@@ -1134,6 +1135,7 @@ impl<T> Arc<[T]> {
11341135 /// # Examples
11351136 ///
11361137 /// ```
1138+ /// #![feature(new_zeroed_alloc)]
11371139 /// #![feature(new_uninit)]
11381140 ///
11391141 /// use std::sync::Arc;
@@ -1147,7 +1149,7 @@ impl<T> Arc<[T]> {
11471149 /// [zeroed]: mem::MaybeUninit::zeroed
11481150 #[ cfg( not( no_global_oom_handling) ) ]
11491151 #[ inline]
1150- #[ unstable( feature = "new_uninit " , issue = "63291 " ) ]
1152+ #[ unstable( feature = "new_zeroed_alloc " , issue = "129396 " ) ]
11511153 #[ must_use]
11521154 pub fn new_zeroed_slice ( len : usize ) -> Arc < [ mem:: MaybeUninit < T > ] > {
11531155 unsafe {
@@ -1191,7 +1193,7 @@ impl<T, A: Allocator> Arc<[T], A> {
11911193 /// assert_eq!(*values, [1, 2, 3])
11921194 /// ```
11931195 #[ cfg( not( no_global_oom_handling) ) ]
1194- #[ unstable( feature = "new_uninit " , issue = "63291 " ) ]
1196+ #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
11951197 #[ inline]
11961198 pub fn new_uninit_slice_in ( len : usize , alloc : A ) -> Arc < [ mem:: MaybeUninit < T > ] , A > {
11971199 unsafe { Arc :: from_ptr_in ( Arc :: allocate_for_slice_in ( len, & alloc) , alloc) }
@@ -1220,7 +1222,7 @@ impl<T, A: Allocator> Arc<[T], A> {
12201222 ///
12211223 /// [zeroed]: mem::MaybeUninit::zeroed
12221224 #[ cfg( not( no_global_oom_handling) ) ]
1223- #[ unstable( feature = "new_uninit " , issue = "63291 " ) ]
1225+ #[ unstable( feature = "allocator_api " , issue = "32838 " ) ]
12241226 #[ inline]
12251227 pub fn new_zeroed_slice_in ( len : usize , alloc : A ) -> Arc < [ mem:: MaybeUninit < T > ] , A > {
12261228 unsafe {
0 commit comments