Skip to content

Commit a1c37fc

Browse files
committed
restore invalid unwinding in Rust bullet; make more explicit
1 parent 0ff61f4 commit a1c37fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/behavior-considered-undefined.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ Please read the [Rustonomicon] before writing unsafe code.
5858
* Invoking undefined behavior via compiler intrinsics.
5959
* Executing code compiled with platform features that the current platform
6060
does not support (see [`target_feature`]), *except* if the platform explicitly documents this to be safe.
61-
* Calling a function with the wrong [call ABI][abi].
61+
* Calling a function with the wrong [call ABI][abi], or unwinding past a stack
62+
frame that does not allow unwinding (e.g. by calling a `"C-unwind"` function
63+
imported or transmuted as a `"C"` function or function pointer).
6264
* Producing an [invalid value][invalid-values]. "Producing" a
6365
value happens any time a value is assigned to or read from a place, passed to
6466
a function/primitive operation or returned from a function/primitive

0 commit comments

Comments
 (0)