diff options
| author | Ralf Jung <post@ralfj.de> | 2019-03-19 09:46:11 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-03-26 09:23:19 +0100 |
| commit | 853ae8d931c3fe4cd303edf7d80271c1930b9654 (patch) | |
| tree | 40886165f9fcd93316af8df1e5e24df224debee0 /src/test/codegen | |
| parent | 0e0383abc6d1f7d1edc456f66a2e3f4082e9a0a8 (diff) | |
| download | rust-853ae8d931c3fe4cd303edf7d80271c1930b9654.tar.gz rust-853ae8d931c3fe4cd303edf7d80271c1930b9654.zip | |
fix some uses I missed
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/box-maybe-uninit.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/codegen/box-maybe-uninit.rs b/src/test/codegen/box-maybe-uninit.rs index ad1d259a0da..0dd67bb95cc 100644 --- a/src/test/codegen/box-maybe-uninit.rs +++ b/src/test/codegen/box-maybe-uninit.rs @@ -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. |
