File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/librustc_data_structures Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -280,21 +280,22 @@ cfg_if! {
280
280
281
281
#[ macro_export]
282
282
macro_rules! parallel {
283
- ( impl [ $( $c: tt, ) * ] [ $block: tt $( , $rest: tt) * ] ) => {
284
- parallel!( impl [ $block, $( $c, ) * ] [ $( $rest) , * ] )
283
+ ( impl $fblock : tt [ $( $c: tt, ) * ] [ $block: tt $( , $rest: tt) * ] ) => {
284
+ parallel!( impl $fblock [ $block, $( $c, ) * ] [ $( $rest) , * ] )
285
285
} ;
286
- ( impl [ $( $blocks: tt, ) * ] [ ] ) => {
286
+ ( impl $fblock : tt [ $( $blocks: tt, ) * ] [ ] ) => {
287
287
:: rustc_data_structures:: sync:: scope( |s| {
288
288
$(
289
289
s. spawn( |_| $blocks) ;
290
290
) *
291
+ $fblock;
291
292
} )
292
293
} ;
293
- ( $( $blocks: tt) , * ) => {
294
+ ( $fblock : tt , $ ( $blocks: tt) , * ) => {
294
295
// Reverse the order of the blocks since Rayon executes them in reverse order
295
296
// when using a single thread. This ensures the execution order matches that
296
297
// of a single threaded rustc
297
- parallel!( impl [ ] [ $( $blocks) , * ] ) ;
298
+ parallel!( impl $fblock [ ] [ $( $blocks) , * ] ) ;
298
299
} ;
299
300
}
300
301
You can’t perform that action at this time.
0 commit comments