Skip to content

Commit da2f1ca

Browse files
committed
Add #![allow(improper_ctypes)] to extern-pass-empty.rs; note this test 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.
1 parent 23dc362 commit da2f1ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/ui/run-pass/extern/extern-pass-empty.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(improper_ctypes)] // FIXME: this test is inherently not FFI-safe.
13+
1214
// Test a foreign function that accepts empty struct.
1315

1416
// pretty-expanded FIXME #23616

0 commit comments

Comments
 (0)