You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/abi.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Function calls pass parameters and return values between the caller and the call
22
22
> These are not fully documented here currently.
23
23
24
24
> [!WARNING]
25
-
> Two types that are ABI Compatible may not allow the same set of values (e.g. [`*const T`] and [`core::ptr::NonNull<T>`]).
25
+
> Two types that are ABI Compatible may not allow the same set of values (e.g. [`*const T`] and [`core::ptr::NonNull<T>`]).
26
26
> If an invalid value is passed as a parameter or returned from a function, the result is immediate undefined behaviour, even if the parameter or return value is never used.
27
27
> For example, passing a null pointer to a function that accepts a `NonNull<i32>` parameter via `fn(*const i32)` function pointer caused undefined behaviour.
28
28
@@ -188,7 +188,6 @@ A call to a function `f` via a function item or function pointer with a given si
188
188
189
189
The behavior of a call that is not valid is undefined.
190
190
191
-
192
191
> [!NOTE]
193
192
> The ABI tag `extern "Rust"` is the default when the `extern` keyword is not used (either to declare the function within an [`extern` block], or as a [function qualifier][extern functions]). Thus it is safe to call most functions that use simd types.
0 commit comments