Skip to content

Commit 33a8dc1

Browse files
committed
Fix wrong par_slice implementation
1 parent fef627b commit 33a8dc1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_data_structures/src/sync/parallel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn par_slice<I: DynSend>(
133133
rustc_thread_pool::scope(|s| {
134134
let proof = items.derive(());
135135
let group_size = std::cmp::max(items.len() / 128, 1);
136-
for group in items.chunks_exact_mut(group_size) {
136+
for group in items.chunks_mut(group_size) {
137137
let group = proof.derive(group);
138138
s.spawn(|_| {
139139
let mut group = group;

0 commit comments

Comments
 (0)