File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ additionally [leaks internal compiler implementation details][leak-details] of
12
12
both the Rust compiler and LLVM. This will change in a future version of the
13
13
Rust compiler and the [ official C ABI] [ tool-conventions ] will be used instead.
14
14
15
+ This post details some history behind this change and the rationale for why it's
16
+ being announced here, but you can skip straight to [ "Am I
17
+ affected?"] ( #am-i-affected ) as well.
18
+
15
19
[ tool-conventions ] : https://github.com/WebAssembly/tool-conventions/blob/main/BasicCABI.md
16
20
[ leak-details ] : https://github.com/rust-lang/rust/issues/115666
17
21
@@ -98,7 +102,7 @@ This will generate the following WebAssembly function:
98
102
99
103
Notably you can see here that the struct ` Pair ` was "splatted" into its two
100
104
components so the actual ` $pair_add ` function takes two arguments, the ` x ` and
101
- ` y ` fields. The [ tool-conventions] , however [ specifically says] that "other
105
+ ` y ` fields. The [ tool-conventions] , however specifically says that "other
102
106
struct[ s] or union[ s] " are passed indirectly, notably through memory. We can see
103
107
this by compiling this C code:
104
108
You can’t perform that action at this time.
0 commit comments