pathfinder_simd vector types cause FFI warnings with current nightly
berkus opened this issue · comments
warning: `extern` block uses type `float32x2_t`, which is not FFI-safe
--> /..../pathfinder/simd/src/arm/mod.rs:865:22
|
865 | fn fabs_v2f32(a: float32x2_t) -> float32x2_t;
| ^^^^^^^^^^^ not FFI-safe
|
= note: `#[warn(improper_ctypes)]` on by default
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
= note: this struct has unspecified layout
I believe #[repr(transparent)]
is the right attribute here.