Skip to content

Commit

Permalink
Add #[allow(improper_ctypes)] to slew of cases that need e.g. `repr…
Browse files Browse the repository at this point in the history
…(C)`.

See also rust-lang#53858.
  • Loading branch information
pnkfelix committed Sep 6, 2018
1 parent e462c1a commit 8bcf37d
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/extern/extern-pass-TwoU16s.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)]

// ignore-wasm32-bare no libc for ffi testing

// Test a foreign function that accepts and returns a struct
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/extern/extern-pass-TwoU32s.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)]

// ignore-wasm32-bare no libc for ffi testing

// Test a foreign function that accepts and returns a struct
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/extern/extern-pass-TwoU64s.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)]

// ignore-wasm32-bare no libc for ffi testing

// Test a foreign function that accepts and returns a struct
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/extern/extern-pass-TwoU8s.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)]

// ignore-wasm32-bare no libc for ffi testing

// Test a foreign function that accepts and returns a struct
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/extern/extern-return-TwoU16s.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)]

// ignore-wasm32-bare no libc to test ffi with

pub struct TwoU16s {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/extern/extern-return-TwoU32s.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)]

// ignore-wasm32-bare no libc to test ffi with

pub struct TwoU32s {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/extern/extern-return-TwoU64s.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)]

// ignore-wasm32-bare no libc to test ffi with

pub struct TwoU64s {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/extern/extern-return-TwoU8s.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)]

// ignore-wasm32-bare no libc to test ffi with

pub struct TwoU8s {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/foreign/foreign-fn-with-byval.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)]

// ignore-wasm32-bare no libc to test ffi with

#[derive(Copy, Clone)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/issues/issue-3656.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)]

// Issue #3656
// Incorrect struct size computation in the FFI, because of not taking
// the alignment of elements into account.
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/issues/issue-5754.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)]

// pretty-expanded FIXME #23616

struct TwoDoubles {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/issues/issue-6470.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)]

// pretty-expanded FIXME #23616
#![allow(non_snake_case)]

Expand Down

0 comments on commit 8bcf37d

Please sign in to comment.