fix some uses I missed

This commit is contained in:
Ralf Jung 2019-03-19 09:46:11 +01:00
parent 0e0383abc6
commit 853ae8d931
5 changed files with 13 additions and 10 deletions

View file

@ -12,5 +12,8 @@ pub fn box_uninitialized() -> Box<MaybeUninit<usize>> {
// CHECK-NOT: alloca
// CHECK-NOT: memcpy
// CHECK-NOT: memset
Box::new(MaybeUninit::uninitialized())
Box::new(MaybeUninit::uninit())
}
// FIXME: add a test for a bigger box. Currently broken, see
// https://github.com/rust-lang/rust/issues/58201.