We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
parallel!
1 parent 261b727 commit f196e27Copy full SHA for f196e27
compiler/rustc_data_structures/src/sync.rs
@@ -402,6 +402,13 @@ cfg_if! {
402
// We catch panics here ensuring that all the blocks execute.
403
// This makes behavior consistent with the parallel compiler.
404
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
412
$(
413
if let Err(p) = ::std::panic::catch_unwind(
414
::std::panic::AssertUnwindSafe(|| $blocks)
0 commit comments