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]
126
126
### Uncaught foreign unwinding
127
127
128
128
When 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
131
131
take the form of an abort, in which case it is not guaranteed that any ` Drop `
132
132
calls will be executed, and the error output may be less informative than if the
133
133
runtime 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:
77
77
78
78
r[ panic.unwind.ffi.catch-foreign]
79
79
Catching 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
82
82
which will occur:
83
83
* The process aborts.
84
84
* The function returns a [ ` Result::Err ` ] containing an opaque type.
You can’t perform that action at this time.
0 commit comments