We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68d1729 commit 3724c1fCopy full SHA for 3724c1f
reference/src/representation/unions.md
@@ -34,3 +34,7 @@ a field type to obtain a pointer to any field, and vice versa.
34
to keep the option of using non-zero offsets open for the future; whether this
35
is useful depends on what exactly the compiler-assumed invariants about union
36
contents are.
37
+
38
+Even if the offsets happen to be all 0, there might still be differences in the
39
+function call ABI. If you need to pass unions by-value across an FFI boundary,
40
+you have to use `#[repr(C)]`.
0 commit comments