Skip to content

Commit 23dc362

Browse files
committed
Add #[allow(improper_ctypes)] to slew of cases that need e.g. repr(C).
See also rust-lang#53858.
1 parent 4d28aed commit 23dc362

12 files changed

+24
-0
lines changed

src/test/ui/run-pass/extern/extern-pass-TwoU16s.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)]
13+
1214
// ignore-wasm32-bare no libc for ffi testing
1315

1416
// Test a foreign function that accepts and returns a struct

src/test/ui/run-pass/extern/extern-pass-TwoU32s.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)]
13+
1214
// ignore-wasm32-bare no libc for ffi testing
1315

1416
// Test a foreign function that accepts and returns a struct

src/test/ui/run-pass/extern/extern-pass-TwoU64s.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)]
13+
1214
// ignore-wasm32-bare no libc for ffi testing
1315

1416
// Test a foreign function that accepts and returns a struct

src/test/ui/run-pass/extern/extern-pass-TwoU8s.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)]
13+
1214
// ignore-wasm32-bare no libc for ffi testing
1315

1416
// Test a foreign function that accepts and returns a struct

src/test/ui/run-pass/extern/extern-return-TwoU16s.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)]
13+
1214
// ignore-wasm32-bare no libc to test ffi with
1315

1416
pub struct TwoU16s {

src/test/ui/run-pass/extern/extern-return-TwoU32s.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)]
13+
1214
// ignore-wasm32-bare no libc to test ffi with
1315

1416
pub struct TwoU32s {

src/test/ui/run-pass/extern/extern-return-TwoU64s.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)]
13+
1214
// ignore-wasm32-bare no libc to test ffi with
1315

1416
pub struct TwoU64s {

src/test/ui/run-pass/extern/extern-return-TwoU8s.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)]
13+
1214
// ignore-wasm32-bare no libc to test ffi with
1315

1416
pub struct TwoU8s {

src/test/ui/run-pass/foreign/foreign-fn-with-byval.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)]
13+
1214
// ignore-wasm32-bare no libc to test ffi with
1315

1416
#[derive(Copy, Clone)]

src/test/ui/run-pass/issues/issue-3656.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)]
13+
1214
// Issue #3656
1315
// Incorrect struct size computation in the FFI, because of not taking
1416
// the alignment of elements into account.

src/test/ui/run-pass/issues/issue-5754.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)]
13+
1214
// pretty-expanded FIXME #23616
1315

1416
struct TwoDoubles {

src/test/ui/run-pass/issues/issue-6470.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)]
13+
1214
// pretty-expanded FIXME #23616
1315
#![allow(non_snake_case)]
1416

0 commit comments

Comments
 (0)