Skip to content

Commit 370d83e

Browse files
committed
Change feature flag for Box::new_uninit_slice_in
1 parent 9ff05f3 commit 370d83e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/liballoc/boxed.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl<T, A: AllocRef> Box<[T], A> {
370370
/// Behaves like [`new_uninit_slice`] but generic over the allocator.
371371
///
372372
/// [`new_uninit_slice`]: #method.new_uninit_slice
373-
#[unstable(feature = "new_uninit", issue = "63291")]
373+
#[unstable(feature = "allocator_api", issue = "32838")]
374374
pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> {
375375
unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) }
376376
}
@@ -805,7 +805,6 @@ impl<T: Clone, A: AllocRef + Clone> Clone for Box<T, A> {
805805
/// // But they are unique objects
806806
/// assert_ne!(&*x as *const i32, &*y as *const i32);
807807
/// ```
808-
#[rustfmt::skip]
809808
#[inline]
810809
fn clone(&self) -> Self {
811810
Self::new_in((**self).clone(), self.alloc().clone())

0 commit comments

Comments
 (0)