| 
 | 1 | +warning: `extern` fn uses type `v128`, which is not FFI-safe  | 
 | 2 | +  --> $DIR/wasm_c_abi_transition.rs:55:35  | 
 | 3 | +   |  | 
 | 4 | +LL | pub extern "C" fn my_safe_simd(x: v128) -> v128 { x }  | 
 | 5 | +   |                                   ^^^^ not FFI-safe  | 
 | 6 | +   |  | 
 | 7 | +   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct  | 
 | 8 | +   = note: this struct has unspecified layout  | 
 | 9 | +note: the type is defined here  | 
 | 10 | +  --> $DIR/wasm_c_abi_transition.rs:53:1  | 
 | 11 | +   |  | 
 | 12 | +LL | pub struct v128([i32; 4]);  | 
 | 13 | +   | ^^^^^^^^^^^^^^^  | 
 | 14 | +   = note: `#[warn(improper_ctypes_definitions)]` on by default  | 
 | 15 | + | 
 | 16 | +warning: `extern` fn uses type `v128`, which is not FFI-safe  | 
 | 17 | +  --> $DIR/wasm_c_abi_transition.rs:55:44  | 
 | 18 | +   |  | 
 | 19 | +LL | pub extern "C" fn my_safe_simd(x: v128) -> v128 { x }  | 
 | 20 | +   |                                            ^^^^ not FFI-safe  | 
 | 21 | +   |  | 
 | 22 | +   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct  | 
 | 23 | +   = note: this struct has unspecified layout  | 
 | 24 | +note: the type is defined here  | 
 | 25 | +  --> $DIR/wasm_c_abi_transition.rs:53:1  | 
 | 26 | +   |  | 
 | 27 | +LL | pub struct v128([i32; 4]);  | 
 | 28 | +   | ^^^^^^^^^^^^^^^  | 
 | 29 | + | 
1 | 30 | error: this function definition involves an argument of type `MyType` which is affected by the wasm ABI transition  | 
2 | 31 |   --> $DIR/wasm_c_abi_transition.rs:18:1  | 
3 | 32 |    |  | 
@@ -33,7 +62,7 @@ LL |     unsafe { other_fun(x) }  | 
33 | 62 |    = note: for more information, see issue #138762 <https://github.com/rust-lang/rust/issues/138762>  | 
34 | 63 |    = help: the "C" ABI Rust uses on wasm32-unknown-unknown will change to align with the standard "C" ABI for this target  | 
35 | 64 | 
 
  | 
36 |  | -error: aborting due to 3 previous errors  | 
 | 65 | +error: aborting due to 3 previous errors; 2 warnings emitted  | 
37 | 66 | 
 
  | 
38 | 67 | Future incompatibility report: Future breakage diagnostic:  | 
39 | 68 | error: this function definition involves an argument of type `MyType` which is affected by the wasm ABI transition  | 
 | 
0 commit comments