diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-08-31 15:51:35 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-09-06 13:00:26 +0200 |
| commit | 8bcf37d949a9c7091c3abfa99ef17335b3a21905 (patch) | |
| tree | 1852cb567b364563b1f0120b165c782e2e0ce458 | |
| parent | e462c1adc5d40383f6cf937f17a7525414756c0e (diff) | |
| download | rust-8bcf37d949a9c7091c3abfa99ef17335b3a21905.tar.gz rust-8bcf37d949a9c7091c3abfa99ef17335b3a21905.zip | |
Add `#[allow(improper_ctypes)]` to slew of cases that need e.g. `repr(C)`.
See also rust-lang/rust#53858.
12 files changed, 24 insertions, 0 deletions
diff --git a/src/test/ui/run-pass/extern/extern-pass-TwoU16s.rs b/src/test/ui/run-pass/extern/extern-pass-TwoU16s.rs index 0cd8891cbe6..042c27d0902 100644 --- a/src/test/ui/run-pass/extern/extern-pass-TwoU16s.rs +++ b/src/test/ui/run-pass/extern/extern-pass-TwoU16s.rs @@ -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 diff --git a/src/test/ui/run-pass/extern/extern-pass-TwoU32s.rs b/src/test/ui/run-pass/extern/extern-pass-TwoU32s.rs index 8d7653d1b02..de1819a1fbd 100644 --- a/src/test/ui/run-pass/extern/extern-pass-TwoU32s.rs +++ b/src/test/ui/run-pass/extern/extern-pass-TwoU32s.rs @@ -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 diff --git a/src/test/ui/run-pass/extern/extern-pass-TwoU64s.rs b/src/test/ui/run-pass/extern/extern-pass-TwoU64s.rs index d53b828d400..5e4b3823b14 100644 --- a/src/test/ui/run-pass/extern/extern-pass-TwoU64s.rs +++ b/src/test/ui/run-pass/extern/extern-pass-TwoU64s.rs @@ -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 diff --git a/src/test/ui/run-pass/extern/extern-pass-TwoU8s.rs b/src/test/ui/run-pass/extern/extern-pass-TwoU8s.rs index 198634c1dc7..affcf62af70 100644 --- a/src/test/ui/run-pass/extern/extern-pass-TwoU8s.rs +++ b/src/test/ui/run-pass/extern/extern-pass-TwoU8s.rs @@ -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 diff --git a/src/test/ui/run-pass/extern/extern-return-TwoU16s.rs b/src/test/ui/run-pass/extern/extern-return-TwoU16s.rs index ac51116637f..826b5083676 100644 --- a/src/test/ui/run-pass/extern/extern-return-TwoU16s.rs +++ b/src/test/ui/run-pass/extern/extern-return-TwoU16s.rs @@ -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 { diff --git a/src/test/ui/run-pass/extern/extern-return-TwoU32s.rs b/src/test/ui/run-pass/extern/extern-return-TwoU32s.rs index 6abbd7e289a..15584f28d07 100644 --- a/src/test/ui/run-pass/extern/extern-return-TwoU32s.rs +++ b/src/test/ui/run-pass/extern/extern-return-TwoU32s.rs @@ -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 { diff --git a/src/test/ui/run-pass/extern/extern-return-TwoU64s.rs b/src/test/ui/run-pass/extern/extern-return-TwoU64s.rs index 9e392521f6f..94378522a1b 100644 --- a/src/test/ui/run-pass/extern/extern-return-TwoU64s.rs +++ b/src/test/ui/run-pass/extern/extern-return-TwoU64s.rs @@ -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 { diff --git a/src/test/ui/run-pass/extern/extern-return-TwoU8s.rs b/src/test/ui/run-pass/extern/extern-return-TwoU8s.rs index 720b1751e5a..a66098c9774 100644 --- a/src/test/ui/run-pass/extern/extern-return-TwoU8s.rs +++ b/src/test/ui/run-pass/extern/extern-return-TwoU8s.rs @@ -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 { diff --git a/src/test/ui/run-pass/foreign/foreign-fn-with-byval.rs b/src/test/ui/run-pass/foreign/foreign-fn-with-byval.rs index 14426fabaa5..1c8d1bd2566 100644 --- a/src/test/ui/run-pass/foreign/foreign-fn-with-byval.rs +++ b/src/test/ui/run-pass/foreign/foreign-fn-with-byval.rs @@ -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)] diff --git a/src/test/ui/run-pass/issues/issue-3656.rs b/src/test/ui/run-pass/issues/issue-3656.rs index 3807b369ce2..1e626e2e9c1 100644 --- a/src/test/ui/run-pass/issues/issue-3656.rs +++ b/src/test/ui/run-pass/issues/issue-3656.rs @@ -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. diff --git a/src/test/ui/run-pass/issues/issue-5754.rs b/src/test/ui/run-pass/issues/issue-5754.rs index 7933c44932f..ba79c32a83d 100644 --- a/src/test/ui/run-pass/issues/issue-5754.rs +++ b/src/test/ui/run-pass/issues/issue-5754.rs @@ -9,6 +9,8 @@ // except according to those terms. // run-pass +#![allow(improper_ctypes)] + // pretty-expanded FIXME #23616 struct TwoDoubles { diff --git a/src/test/ui/run-pass/issues/issue-6470.rs b/src/test/ui/run-pass/issues/issue-6470.rs index 6803ee6357b..152b4bbedc3 100644 --- a/src/test/ui/run-pass/issues/issue-6470.rs +++ b/src/test/ui/run-pass/issues/issue-6470.rs @@ -9,6 +9,8 @@ // except according to those terms. // run-pass +#![allow(improper_ctypes)] + // pretty-expanded FIXME #23616 #![allow(non_snake_case)] |
