fix parallel!
This commit is contained in:
parent
261b727d76
commit
f196e27d87
1 changed files with 7 additions and 0 deletions
|
@ -402,6 +402,13 @@ cfg_if! {
|
|||
// We catch panics here ensuring that all the blocks execute.
|
||||
// This makes behavior consistent with the parallel compiler.
|
||||
let mut panic = None;
|
||||
if let Err(p) = ::std::panic::catch_unwind(
|
||||
::std::panic::AssertUnwindSafe(|| $fblock)
|
||||
) {
|
||||
if panic.is_none() {
|
||||
panic = Some(p);
|
||||
}
|
||||
}
|
||||
$(
|
||||
if let Err(p) = ::std::panic::catch_unwind(
|
||||
::std::panic::AssertUnwindSafe(|| $blocks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue