Skip to content

Commit 0e1f1b3

Browse files
committed
modify UB verbiage about cross-runtime catching
1 parent e7b34c0 commit 0e1f1b3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/behavior-considered-undefined.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,9 @@ Unwinding with the wrong [ABI][abi] is undefined behavior:
188188
unwinding, such as code compiled with GCC or Clang using `-fno-exceptions`
189189

190190
Catching an unwinding operation in a different runtime than the one in which it
191-
initiated is also undefined behavior:
192-
193-
* Catching a Rust `panic` in non Rust code (for instance `catch (...)` in C++).
194-
* Catching a non-Rust unwind (such as a C++ exception) in Rust (that is, with `catch_unwind`).
191+
initiated is also undefined behavior. For example, catching a Rust `panic` in
192+
non Rust code (for instance `catch (...)` in C++), or in Rust code compiled or
193+
linked with a different runtime, is undefined bheavior.
195194

196195
[`bool`]: types/boolean.md
197196
[`const`]: items/constant-items.md

0 commit comments

Comments
 (0)