Skip to content

Commit

Permalink
Merge pull request rust-lang#196 from diwic/patch-1
Browse files Browse the repository at this point in the history
Document "prevent unwinding into FFI"
  • Loading branch information
QuietMisdreavus authored Jan 12, 2018
2 parents dcd60a2 + 512d377 commit ca9c708
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/items/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@ same type as the functions declared in an extern block.
let fptr: extern "C" fn() -> i32 = new_i32;
```

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 comments on commit ca9c708

Please sign in to comment.