Skip to content

Commit

Permalink
Add #![allow(improper_ctypes)] to extern-pass-empty.rs; note this t…
Browse files Browse the repository at this point in the history
…est seems bogus.

that is, I suspect it should be retired because it is testing behavior
(namely a `#[repr(C)] struct Empty;`) that, if I understand correctly,
is undefined.

See also rust-lang#53859.
  • Loading branch information
pnkfelix committed Sep 6, 2018
1 parent 8bcf37d commit d18b3bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/extern/extern-pass-empty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// except according to those terms.

// run-pass
#![allow(improper_ctypes)] // FIXME: this test is inherently not FFI-safe.

// Test a foreign function that accepts empty struct.

// pretty-expanded FIXME #23616
Expand Down

0 comments on commit d18b3bf

Please sign in to comment.