Skip to content

Commit

Permalink
Ignore improper_ctypes_definitions warning in test
Browse files Browse the repository at this point in the history
```
warning: `extern` fn uses type `impl Future<Output = ()>`, which is not FFI-safe
  --> test_suite/tests/test.rs:77:70
   |
77 |     async unsafe extern "C" fn const_async_unsafe_extern_non_const() {}
   |                                                                      ^ not FFI-safe
   |
   = note: opaque types have no C equivalent
   = note: `#[warn(improper_ctypes_definitions)]` on by default

warning: `extern` fn uses type `impl Future<Output = ()>`, which is not FFI-safe
  --> test_suite/tests/test.rs:79:78
   |
79 |     pub async unsafe extern "C" fn const_async_unsafe_extern_non_const_pub() {}
   |                                                                              ^ not FFI-safe
   |
   = note: opaque types have no C equivalent

warning: `extern` fn uses type `impl Future<Output = ()>`, which is not FFI-safe
  --> test_suite/tests/test.rs:81:72
   |
81 |     const async unsafe extern "C" fn const_async_unsafe_extern_const() {}
   |                                                                        ^ not FFI-safe
   |
   = note: opaque types have no C equivalent

warning: `extern` fn uses type `impl Future<Output = ()>`, which is not FFI-safe
  --> test_suite/tests/test.rs:83:80
   |
83 |     pub const async unsafe extern "C" fn const_async_unsafe_extern_const_pub() {}
   |                                                                                ^ not FFI-safe
   |
   = note: opaque types have no C equivalent
```
  • Loading branch information
taiki-e committed Aug 4, 2023
1 parent 3de5de5 commit 61ae9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_suite/tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![cfg_attr(const_unstable, feature(const_extern_fn))]
#![warn(rust_2018_idioms, single_use_lifetimes)]
#![allow(clippy::missing_safety_doc, clippy::unused_async)] // this is test
#![allow(clippy::missing_safety_doc, clippy::unused_async, improper_ctypes_definitions)] // this is test

pub mod signature {
#![allow(dead_code)]
Expand Down

0 comments on commit 61ae9b1

Please sign in to comment.