1
Fork 0

Abort when catch_unwind catches a foreign exception

This commit is contained in:
Amanieu d'Antras 2020-03-21 07:50:38 +00:00
parent 118860a7e7
commit 239f833ed1
26 changed files with 274 additions and 104 deletions

View file

@ -359,6 +359,9 @@ impl<F: Future> Future for AssertUnwindSafe<F> {
/// aborting the process as well. This function *only* catches unwinding panics,
/// not those that abort the process.
///
/// Also note that unwinding into Rust code with a foreign exception (e.g. a
/// an exception thrown from C++ code) is undefined behavior.
///
/// # Examples
///
/// ```