Skip to content

Commit

Permalink
Change feature flag for Box::new_uninit_slice_in
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann committed May 11, 2020
1 parent 9ff05f3 commit 370d83e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ impl<T, A: AllocRef> Box<[T], A> {
/// Behaves like [`new_uninit_slice`] but generic over the allocator.
///
/// [`new_uninit_slice`]: #method.new_uninit_slice
#[unstable(feature = "new_uninit", issue = "63291")]
#[unstable(feature = "allocator_api", issue = "32838")]
pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> {
unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) }
}
Expand Down Expand Up @@ -805,7 +805,6 @@ impl<T: Clone, A: AllocRef + Clone> Clone for Box<T, A> {
/// // But they are unique objects
/// assert_ne!(&*x as *const i32, &*y as *const i32);
/// ```
#[rustfmt::skip]
#[inline]
fn clone(&self) -> Self {
Self::new_in((**self).clone(), self.alloc().clone())
Expand Down

0 comments on commit 370d83e

Please sign in to comment.