Skip to content

Commit 12fbcad

Browse files
BatmanAoDtmandry
andcommitted
Update src/items/functions.md
PR suggestion: not all ABIs have `-unwind` Co-authored-by: Tyler Mandry <tmandry@gmail.com>
1 parent 3ad22a3 commit 12fbcad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/items/functions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ let fptr: extern "C" fn() -> i32 = new_i32;
205205

206206
### Unwinding
207207

208-
Each non-`Rust` ABI string has a corresponding ABI with the suffix `-unwind`.
208+
Most ABI strings come in two variants, one with an `-unwind` suffix and one without.
209+
The `Rust` ABI always permits unwinding, so there is no `Rust-unwind` ABI.
209210

210211
The choice of ABI, together with the [panic mode][panic-modes], determines the
211212
behavior when unwinding out of a function.

0 commit comments

Comments
 (0)