Skip to content

Commit 512d377

Browse files
authored
Document "prevent unwinding into FFI"
As suggested in rust-lang/rust#46833
1 parent b6acf26 commit 512d377

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/items/functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,4 @@ same type as the functions declared in an extern block.
165165
let fptr: extern "C" fn() -> i32 = new_i32;
166166
```
167167

168+
As non-Rust calling conventions do not support unwinding, unwinding past the end of an extern function will cause the process to abort (in LLVM, this is implemented by executing an illegal instruction).

0 commit comments

Comments
 (0)