Clarify catch_unwind docs about panic hooks
Makes it clear from catch_unwind docs that the panic hook will be called before the panic is caught.
This commit is contained in:
parent
14ca83a04b
commit
cb7c8993b9
@ -114,6 +114,9 @@ impl<K, V, S> UnwindSafe for collections::HashMap<K, V, S>
|
||||
/// aborting the process as well. This function *only* catches unwinding panics,
|
||||
/// not those that abort the process.
|
||||
///
|
||||
/// Note that if a custom panic hook has been set, it will be invoked before
|
||||
/// the panic is caught, before unwinding.
|
||||
///
|
||||
/// Also note that unwinding into Rust code with a foreign exception (e.g.
|
||||
/// an exception thrown from C++ code) is undefined behavior.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user