Skip to content

Commit

Permalink
Temporarily remove MaybeUninit
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Jun 30, 2019
1 parent 9605714 commit f8c43dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,7 @@ impl<'a> Generator<'a> {
fn roundtrip_padding_{ty}() -> Vec<u8> {{
// stores (offset, size) for each field
let mut v = Vec::<(usize, usize)>::new();
let foo = mem::MaybeUninit::<{ty}>::uninit();
let foo: {} = unsafe {{ std::mem::uninitialized() }};
let foo = &foo as *const _ as *const {ty};
"#,
ty = rust
Expand Down Expand Up @@ -1933,7 +1933,7 @@ impl<'a> Generator<'a> {
#[inline(never)]
fn roundtrip_{ty}() {{
use libc::c_int;
type U = std::mem::MaybeUninit<{ty}>;
type U = {ty};
#[allow(improper_ctypes)]
extern {{
#[allow(non_snake_case)]
Expand Down

0 comments on commit f8c43dc

Please sign in to comment.