Rollup merge of #129416 - workingjubilee:partial-move-from-stabilizat… · patricklam/verify-rust-std@3a33922 (original) (raw)
`@@ -542,6 +542,7 @@ impl Arc {
`
542
542
`/// # Examples
`
543
543
`///
`
544
544
```` /// ```
``
`545`
`+
/// #![feature(new_zeroed_alloc)]
`
`545`
`546`
`/// #![feature(new_uninit)]
`
`546`
`547`
`///
`
`547`
`548`
`/// use std::sync::Arc;
`
`@@ -555,7 +556,7 @@ impl<T> Arc<T> {
`
`555`
`556`
`/// [zeroed]: mem::MaybeUninit::zeroed
`
`556`
`557`
`#[cfg(not(no_global_oom_handling))]
`
`557`
`558`
`#[inline]
`
`558`
``
`-
#[unstable(feature = "new_uninit", issue = "63291")]
`
``
`559`
`+
#[unstable(feature = "new_zeroed_alloc", issue = "129396")]
`
`559`
`560`
`#[must_use]
`
`560`
`561`
`pub fn new_zeroed() -> Arc<mem::MaybeUninit<T>> {
`
`561`
`562`
`unsafe {
`
`@@ -1134,6 +1135,7 @@ impl<T> Arc<[T]> {
`
`1134`
`1135`
`/// # Examples
`
`1135`
`1136`
`///
`
`1136`
`1137`
```` /// ```
``
1138
`+
/// #![feature(new_zeroed_alloc)]
`
1137
1139
`/// #![feature(new_uninit)]
`
1138
1140
`///
`
1139
1141
`/// use std::sync::Arc;
`
`@@ -1147,7 +1149,7 @@ impl Arc<[T]> {
`
1147
1149
`/// [zeroed]: mem::MaybeUninit::zeroed
`
1148
1150
`#[cfg(not(no_global_oom_handling))]
`
1149
1151
`#[inline]
`
1150
``
`-
#[unstable(feature = "new_uninit", issue = "63291")]
`
``
1152
`+
#[unstable(feature = "new_zeroed_alloc", issue = "129396")]
`
1151
1153
`#[must_use]
`
1152
1154
`pub fn new_zeroed_slice(len: usize) -> Arc<[mem::MaybeUninit]> {
`
1153
1155
`unsafe {
`
`@@ -1191,7 +1193,7 @@ impl<T, A: Allocator> Arc<[T], A> {
`
1191
1193
`/// assert_eq!(*values, [1, 2, 3])
`
1192
1194
```` /// ```
````
1193
1195
`#[cfg(not(no_global_oom_handling))]
`
1194
``
`-
#[unstable(feature = "new_uninit", issue = "63291")]
`
``
1196
`+
#[unstable(feature = "allocator_api", issue = "32838")]
`
1195
1197
`#[inline]
`
1196
1198
`pub fn new_uninit_slice_in(len: usize, alloc: A) -> Arc<[mem::MaybeUninit], A> {
`
1197
1199
`unsafe { Arc::from_ptr_in(Arc::allocate_for_slice_in(len, &alloc), alloc) }
`
`@@ -1220,7 +1222,7 @@ impl<T, A: Allocator> Arc<[T], A> {
`
1220
1222
`///
`
1221
1223
`/// [zeroed]: mem::MaybeUninit::zeroed
`
1222
1224
`#[cfg(not(no_global_oom_handling))]
`
1223
``
`-
#[unstable(feature = "new_uninit", issue = "63291")]
`
``
1225
`+
#[unstable(feature = "allocator_api", issue = "32838")]
`
1224
1226
`#[inline]
`
1225
1227
`pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Arc<[mem::MaybeUninit], A> {
`
1226
1228
`unsafe {
`