File tree 1 file changed +2
-8
lines changed
src/librustc_data_structures
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -203,11 +203,7 @@ cfg_if! {
203
203
t. into_iter( )
204
204
}
205
205
206
- pub fn par_for_each_in<T : IntoIterator >(
207
- t: T ,
208
- for_each:
209
- impl Fn ( <<T as IntoIterator >:: IntoIter as Iterator >:: Item ) + Sync + Send
210
- ) {
206
+ pub fn par_for_each_in<T : IntoIterator >( t: T , for_each: impl Fn ( T :: Item ) + Sync + Send ) {
211
207
// We catch panics here ensuring that all the loop iterations execute.
212
208
// This makes behavior consistent with the parallel compiler.
213
209
let mut panic = None ;
@@ -397,9 +393,7 @@ cfg_if! {
397
393
398
394
pub fn par_for_each_in<T : IntoParallelIterator >(
399
395
t: T ,
400
- for_each: impl Fn (
401
- <<T as IntoParallelIterator >:: Iter as ParallelIterator >:: Item
402
- ) + Sync + Send
396
+ for_each: impl Fn ( T :: Item ) + Sync + Send ,
403
397
) {
404
398
t. into_par_iter( ) . for_each( for_each)
405
399
}
You can’t perform that action at this time.
0 commit comments