Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic runtime and C-unwind documentation #1226

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
7 changes: 4 additions & 3 deletions src/items/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,10 @@ from the "Native unwind" column in the table.
| `panic=abort` | unwinding | `panic` aborts without unwinding | abort |
| `panic=abort` | non-unwinding | `panic` aborts without unwinding | [undefined behavior] |

> **Note**: With `panic=unwind`, when a `panic` is turned into an abort by a
> non-unwinding ABI boundary, either no destructors (`Drop` calls) will run, or
> all destructors up until the ABI boundary will run.
> **Note**: The following guarantee applies from Rust 1.82 onward: with
> `panic=unwind`, when a `panic` is turned into an abort by a non-unwinding
> ABI boundary, either no destructors (`Drop` calls) will run, or all destructors
> up until the ABI boundary will run.
chorman0773 marked this conversation as resolved.
Show resolved Hide resolved

For other considerations and limitations regarding unwinding across FFI
boundaries, see the [relevant section in the Panic documentation][panic-ffi].
Expand Down