about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-09-29 09:58:09 +0000
committerbors <bors@rust-lang.org>2018-09-29 09:58:09 +0000
commit7e7bc060c1564b19742fd241f40a02c9210e445c (patch)
tree02fced39e6b1d39695f9c896951cbfcef1ce9e23 /src/test/codegen
parentd95fd2585d8d7327a83beee10d9e32129b26cd68 (diff)
parent546e45ab5b20b9151b3331c727ecb5fd2e3eecaf (diff)
downloadrust-7e7bc060c1564b19742fd241f40a02c9210e445c.tar.gz
rust-7e7bc060c1564b19742fd241f40a02c9210e445c.zip
Auto merge of #54554 - RalfJung:maybe-uninit, r=nagisa
Revert most of MaybeUninit, except for the new API itself

This reverts most of https://github.com/rust-lang/rust/pull/53508/ for perf reasons (first commit reverts that entire PR), except for the new API itself (added back in 2nd commit).
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/box-maybe-uninit.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/codegen/box-maybe-uninit.rs b/src/test/codegen/box-maybe-uninit.rs
deleted file mode 100644
index 168e1a3eba0..00000000000
--- a/src/test/codegen/box-maybe-uninit.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// compile-flags: -O
-#![crate_type="lib"]
-#![feature(maybe_uninit)]
-
-use std::mem::MaybeUninit;
-
-// Boxing a `MaybeUninit` value should not copy junk from the stack
-#[no_mangle]
-pub fn box_uninitialized() -> Box<MaybeUninit<usize>> {
-    // CHECK-LABEL: @box_uninitialized
-    // CHECK-NOT: store
-    Box::new(MaybeUninit::uninitialized())
-}