From e2ecb68a0eeee6db4d8f605374e656822186f8b4 Mon Sep 17 00:00:00 2001 From: SparrowLii Date: Tue, 19 Jul 2022 17:00:51 +0800 Subject: use `par_for_each_in` in `par_body_owners` and `collect_crate_mono_items` --- compiler/rustc_data_structures/src/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_data_structures/src') 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: T, for_each: impl Fn(T::Item) + Sync + Send) { + pub fn par_for_each_in(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; -- cgit 1.4.1-3-g733a5