diff options
| author | SparrowLii <liyuan179@huawei.com> | 2022-07-19 17:00:51 +0800 |
|---|---|---|
| committer | SparrowLii <liyuan179@huawei.com> | 2022-07-19 17:00:51 +0800 |
| commit | e2ecb68a0eeee6db4d8f605374e656822186f8b4 (patch) | |
| tree | f08923fd41284b35705503836bf90515c79b39d6 /compiler/rustc_data_structures/src | |
| parent | 96c2df810b0b681fee63cae11ca63844792b6190 (diff) | |
| download | rust-e2ecb68a0eeee6db4d8f605374e656822186f8b4.tar.gz rust-e2ecb68a0eeee6db4d8f605374e656822186f8b4.zip | |
use `par_for_each_in` in `par_body_owners` and `collect_crate_mono_items`
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index cf0940df9e4..52952a7932d 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -146,7 +146,7 @@ cfg_if! { t.into_iter() } - pub fn par_for_each_in<T: IntoIterator>(t: T, for_each: impl Fn(T::Item) + Sync + Send) { + pub fn par_for_each_in<T: IntoIterator>(t: T, mut for_each: impl FnMut(T::Item) + Sync + Send) { // We catch panics here ensuring that all the loop iterations execute. // This makes behavior consistent with the parallel compiler. let mut panic = None; |
