Skip to content

Commit

Permalink
no-exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
BatmanAoD committed Aug 26, 2023
1 parent 812cc68 commit e8c62b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/behavior-considered-undefined.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ code.
* Invoking undefined behavior via compiler intrinsics.
* Executing code compiled with platform features that the current platform
does not support (see [`target_feature`]), *except* if the platform explicitly documents this to be safe.
* Calling a function with the wrong call ABI or unwinding from a function with the wrong unwind ABI.
* Calling a function with the wrong call ABI or unwinding from a function with the wrong unwind ABI
* Calling a foreign (e.g. C++) function that unwinds (`throw`s) via a function
declaration or pointer declared with a non-unwinding ABI such as `"C"`
* Calling a Rust `extern` function that unwinds (with `extern "C-unwind"` or
another ABI that permits unwinding) from a runtime that does not support
unwinding, such as code compiled with GCC or Clang using `-fno-exceptions`
* Deallocating a Rust stack frame without executing destructors
for local variables owned by the stack frame. This can occur
with C functions like `longjmp`.
Expand Down

0 comments on commit e8c62b4

Please sign in to comment.