We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26089ba commit 51eb842Copy full SHA for 51eb842
compiler/rustc_data_structures/src/sync.rs
@@ -203,7 +203,7 @@ cfg_if! {
203
204
#[macro_export]
205
macro_rules! parallel {
206
- ($($blocks:block),*) => {
+ ($($blocks:block),*) => {{
207
// We catch panics here ensuring that all the blocks execute.
208
// This makes behavior consistent with the parallel compiler.
209
let mut panic = None;
@@ -219,7 +219,7 @@ cfg_if! {
219
if let Some(panic) = panic {
220
::std::panic::resume_unwind(panic);
221
}
222
- }
+ }}
223
224
225
pub fn par_for_each_in<T: IntoIterator>(t: T, mut for_each: impl FnMut(T::Item) + Sync + Send) {
0 commit comments