diff options
| author | bors <bors@rust-lang.org> | 2022-07-19 13:49:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-19 13:49:56 +0000 |
| commit | a289cfcfb32593c63d75f113547f63ffe2dde285 (patch) | |
| tree | a54aeb4086ab0399fd43dcb0724f0eb26deb91c9 /compiler/rustc_data_structures/src | |
| parent | 8bd12e8cca3f28f302b9cc0f1f47bb64bd1f98fd (diff) | |
| parent | e6904fc5b24a10e97d0a32908f49886e52e73990 (diff) | |
| download | rust-a289cfcfb32593c63d75f113547f63ffe2dde285.tar.gz rust-a289cfcfb32593c63d75f113547f63ffe2dde285.zip | |
Auto merge of #99462 - matthiaskrgr:rollup-ihhwaru, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #98028 (Add E0790 as more specific variant of E0283) - #99384 (use body's param-env when checking if type needs drop) - #99401 (Avoid `Symbol` to `&str` conversions) - #99419 (Stabilize `core::task::ready!`) - #99435 (Revert "Stabilize $$ in Rust 1.63.0") - #99438 (Improve suggestions for `NonZeroT` <- `T` coercion error) - #99441 (Update mdbook) - #99453 (:arrow_up: rust-analyzer) - #99457 (use `par_for_each_in` in `par_body_owners` and `collect_crate_mono_items`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
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; |
