Add #[allow(improper_ctypes)] to slew of cases that need e.g. repr(C).

See also rust-lang/rust#53858.
This commit is contained in:
Felix S. Klock II 2018-08-31 15:51:35 +02:00
parent e462c1adc5
commit 8bcf37d949
12 changed files with 24 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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)]

View file

@ -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.

View file

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(improper_ctypes)]
// pretty-expanded FIXME #23616
struct TwoDoubles {

View file

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(improper_ctypes)]
// pretty-expanded FIXME #23616
#![allow(non_snake_case)]