Skip to content

Commit e8c62b4

Browse files
committed
no-exceptions
1 parent 812cc68 commit e8c62b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/behavior-considered-undefined.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,12 @@ code.
5151
* Invoking undefined behavior via compiler intrinsics.
5252
* Executing code compiled with platform features that the current platform
5353
does not support (see [`target_feature`]), *except* if the platform explicitly documents this to be safe.
54-
* Calling a function with the wrong call ABI or unwinding from a function with the wrong unwind ABI.
54+
* Calling a function with the wrong call ABI or unwinding from a function with the wrong unwind ABI
5555
* Calling a foreign (e.g. C++) function that unwinds (`throw`s) via a function
5656
declaration or pointer declared with a non-unwinding ABI such as `"C"`
57+
* Calling a Rust `extern` function that unwinds (with `extern "C-unwind"` or
58+
another ABI that permits unwinding) from a runtime that does not support
59+
unwinding, such as code compiled with GCC or Clang using `-fno-exceptions`
5760
* Deallocating a Rust stack frame without executing destructors
5861
for local variables owned by the stack frame. This can occur
5962
with C functions like `longjmp`.

0 commit comments

Comments
 (0)