1
Fork 0

review: fix nits and move panic safety tests to the correct place

This commit is contained in:
Alexis Bourget 2020-09-25 23:10:24 +02:00
parent 5be843fc54
commit a61b9638bb
8 changed files with 23 additions and 24 deletions

View file

@ -411,3 +411,6 @@ pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
pub fn resume_unwind(payload: Box<dyn Any + Send>) -> ! {
panicking::rust_panic_without_hook(payload)
}
#[cfg(test)]
mod tests;