File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -126,8 +126,8 @@ r[crate.uncaught-foreign-unwinding]
126126### Uncaught foreign unwinding
127127
128128When a "foreign" unwind (e.g. an exception thrown from C++ code, or a ` panic! `
129- in Rust code compiled or linked with a different runtime) is not caught before
130- reaching the ` main ` function, the process will be safely terminated. This may
129+ in Rust code compiled or linked with a different runtime) propagates beyond
130+ the ` main ` function, the process will be safely terminated. This may
131131take the form of an abort, in which case it is not guaranteed that any ` Drop `
132132calls will be executed, and the error output may be less informative than if the
133133runtime had been terminated by a "native" Rust ` panic ` .
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ Unwinding with the wrong ABI is undefined behavior:
7777
7878r[ panic.unwind.ffi.catch-foreign]
7979Catching a foreign unwinding operation (such as a C++ exception) using
80- [ ` std::panic::catch_unwind ` ] , [ ` std::thread::JoinHandle::join ` ] , or by letting it propagate all the way to a
81- Rust ` main() ` function will have one of two behaviors, and it is unspecified
80+ [ ` std::panic::catch_unwind ` ] , [ ` std::thread::JoinHandle::join ` ] , or by letting it propagate beyond the
81+ Rust ` main() ` function or thread root will have one of two behaviors, and it is unspecified
8282which will occur:
8383* The process aborts.
8484* The function returns a [ ` Result::Err ` ] containing an opaque type.
You can’t perform that action at this time.
0 commit comments