mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 01:24:03 +00:00
Auto merge of #152717 - zetanumbers:fix-152375, r=JonathanBrouwer,petrochenkov,jieyouxu
Fix wrong par_slice implementation https://github.com/rust-lang/rust/pull/152375#discussion_r2812669219
This commit is contained in:
@@ -133,7 +133,7 @@ fn par_slice<I: DynSend>(
|
||||
rustc_thread_pool::scope(|s| {
|
||||
let proof = items.derive(());
|
||||
let group_size = std::cmp::max(items.len() / 128, 1);
|
||||
for group in items.chunks_exact_mut(group_size) {
|
||||
for group in items.chunks_mut(group_size) {
|
||||
let group = proof.derive(group);
|
||||
s.spawn(|_| {
|
||||
let mut group = group;
|
||||
|
||||
Reference in New Issue
Block a user