Skip to content

Commit f196e27

Browse files
committed
fix parallel!
1 parent 261b727 commit f196e27

File tree

1 file changed

+7
-0
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+7
-0
lines changed

compiler/rustc_data_structures/src/sync.rs

+7
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,13 @@ cfg_if! {
402402
// We catch panics here ensuring that all the blocks execute.
403403
// This makes behavior consistent with the parallel compiler.
404404
let mut panic = None;
405+
if let Err(p) = ::std::panic::catch_unwind(
406+
::std::panic::AssertUnwindSafe(|| $fblock)
407+
) {
408+
if panic.is_none() {
409+
panic = Some(p);
410+
}
411+
}
405412
$(
406413
if let Err(p) = ::std::panic::catch_unwind(
407414
::std::panic::AssertUnwindSafe(|| $blocks)

0 commit comments

Comments
 (0)