mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-23 17:40:53 +00:00
Set needs_indirect_abi for Array
Otherwise: warning: `extern` fn uses type `[u8; 3]`, which is not FFI-safe --> src/main.rs:8:21 | 8 | fn arr() -> [u8; 3]; | ^^^^^^^ not FFI-safe | = note: `#[warn(improper_ctypes_definitions)]` on by default = help: consider passing a pointer to the array = note: passing raw arrays by value is not FFI-safe
This commit is contained in:
parent
8f8d78dded
commit
2cabd0a8a3
@ -254,7 +254,7 @@ impl<'a> Types<'a> {
|
||||
Atom::from(&ident.rust) == Some(RustString)
|
||||
}
|
||||
}
|
||||
Type::RustVec(_) => true,
|
||||
Type::RustVec(_) | Type::Array(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user