File: wasm_c_abi_transition.stderr

package info (click to toggle)
rustc 1.88.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 934,128 kB
  • sloc: xml: 158,127; python: 36,062; javascript: 19,855; sh: 19,700; cpp: 18,947; ansic: 12,993; asm: 4,792; makefile: 690; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (114 lines) | stat: -rw-r--r-- 5,454 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
warning: `extern` fn uses type `v128`, which is not FFI-safe
  --> $DIR/wasm_c_abi_transition.rs:55:35
   |
LL | pub extern "C" fn my_safe_simd(x: v128) -> v128 { x }
   |                                   ^^^^ not FFI-safe
   |
   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
   = note: this struct has unspecified layout
note: the type is defined here
  --> $DIR/wasm_c_abi_transition.rs:53:1
   |
LL | pub struct v128([i32; 4]);
   | ^^^^^^^^^^^^^^^
   = note: `#[warn(improper_ctypes_definitions)]` on by default

warning: `extern` fn uses type `v128`, which is not FFI-safe
  --> $DIR/wasm_c_abi_transition.rs:55:44
   |
LL | pub extern "C" fn my_safe_simd(x: v128) -> v128 { x }
   |                                            ^^^^ not FFI-safe
   |
   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
   = note: this struct has unspecified layout
note: the type is defined here
  --> $DIR/wasm_c_abi_transition.rs:53:1
   |
LL | pub struct v128([i32; 4]);
   | ^^^^^^^^^^^^^^^

error: this function definition involves an argument of type `MyType` which is affected by the wasm ABI transition
  --> $DIR/wasm_c_abi_transition.rs:18:1
   |
LL | pub extern "C" fn my_fun(_x: MyType) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #138762 <https://github.com/rust-lang/rust/issues/138762>
   = help: the "C" ABI Rust uses on wasm32-unknown-unknown will change to align with the standard "C" ABI for this target
note: the lint level is defined here
  --> $DIR/wasm_c_abi_transition.rs:9:9
   |
LL | #![deny(wasm_c_abi)]
   |         ^^^^^^^^^^

error: this function definition involves an argument of type `MyAlignedType` which is affected by the wasm ABI transition
  --> $DIR/wasm_c_abi_transition.rs:30:1
   |
LL | pub extern "C" fn my_fun_aligned(_x: MyAlignedType) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #138762 <https://github.com/rust-lang/rust/issues/138762>
   = help: the "C" ABI Rust uses on wasm32-unknown-unknown will change to align with the standard "C" ABI for this target

error: this function call involves an argument of type `MyType` which is affected by the wasm ABI transition
  --> $DIR/wasm_c_abi_transition.rs:39:14
   |
LL |     unsafe { other_fun(x) }
   |              ^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #138762 <https://github.com/rust-lang/rust/issues/138762>
   = help: the "C" ABI Rust uses on wasm32-unknown-unknown will change to align with the standard "C" ABI for this target

error: aborting due to 3 previous errors; 2 warnings emitted

Future incompatibility report: Future breakage diagnostic:
error: this function definition involves an argument of type `MyType` which is affected by the wasm ABI transition
  --> $DIR/wasm_c_abi_transition.rs:18:1
   |
LL | pub extern "C" fn my_fun(_x: MyType) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #138762 <https://github.com/rust-lang/rust/issues/138762>
   = help: the "C" ABI Rust uses on wasm32-unknown-unknown will change to align with the standard "C" ABI for this target
note: the lint level is defined here
  --> $DIR/wasm_c_abi_transition.rs:9:9
   |
LL | #![deny(wasm_c_abi)]
   |         ^^^^^^^^^^

Future breakage diagnostic:
error: this function definition involves an argument of type `MyAlignedType` which is affected by the wasm ABI transition
  --> $DIR/wasm_c_abi_transition.rs:30:1
   |
LL | pub extern "C" fn my_fun_aligned(_x: MyAlignedType) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #138762 <https://github.com/rust-lang/rust/issues/138762>
   = help: the "C" ABI Rust uses on wasm32-unknown-unknown will change to align with the standard "C" ABI for this target
note: the lint level is defined here
  --> $DIR/wasm_c_abi_transition.rs:9:9
   |
LL | #![deny(wasm_c_abi)]
   |         ^^^^^^^^^^

Future breakage diagnostic:
error: this function call involves an argument of type `MyType` which is affected by the wasm ABI transition
  --> $DIR/wasm_c_abi_transition.rs:39:14
   |
LL |     unsafe { other_fun(x) }
   |              ^^^^^^^^^^^^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #138762 <https://github.com/rust-lang/rust/issues/138762>
   = help: the "C" ABI Rust uses on wasm32-unknown-unknown will change to align with the standard "C" ABI for this target
note: the lint level is defined here
  --> $DIR/wasm_c_abi_transition.rs:9:9
   |
LL | #![deny(wasm_c_abi)]
   |         ^^^^^^^^^^