diff options
| author | bors <bors@rust-lang.org> | 2018-09-29 09:58:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-09-29 09:58:09 +0000 |
| commit | 7e7bc060c1564b19742fd241f40a02c9210e445c (patch) | |
| tree | 02fced39e6b1d39695f9c896951cbfcef1ce9e23 /src/test/codegen | |
| parent | d95fd2585d8d7327a83beee10d9e32129b26cd68 (diff) | |
| parent | 546e45ab5b20b9151b3331c727ecb5fd2e3eecaf (diff) | |
| download | rust-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.rs | 23 |
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()) -} |
