Skip to content

Commit 97a720b

Browse files
committed
Rebase slice_group_by stabilization PR
1 parent c5c2fb1 commit 97a720b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

compiler/rustc_codegen_cranelift/patches/0027-coretests-128bit-atomic-operations.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ index 897a5e9..331f66f 100644
2121
-#![cfg_attr(target_has_atomic = "128", feature(integer_atomics))]
2222
#![cfg_attr(test, feature(cfg_match))]
2323
#![feature(int_roundings)]
24-
#![feature(slice_group_by)]
24+
#![feature(split_array)]
2525
diff --git a/atomic.rs b/atomic.rs
2626
index b735957..ea728b6 100644
2727
--- a/atomic.rs

compiler/rustc_passes/src/dead.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ impl<'tcx> DeadVisitor<'tcx> {
917917
return;
918918
}
919919
dead_codes.sort_by_key(|v| v.level);
920-
for group in dead_codes[..].group_by(|a, b| a.level == b.level) {
920+
for group in dead_codes[..].chunk_by(|a, b| a.level == b.level) {
921921
self.lint_at_single_level(&group, participle, Some(def_id), report_on);
922922
}
923923
}

compiler/rustc_passes/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![feature(let_chains)]
1212
#![feature(map_try_insert)]
1313
#![feature(min_specialization)]
14-
#![feature(slice_group_by)]
1514
#![feature(try_blocks)]
1615
#![deny(rustc::untranslatable_diagnostic)]
1716
#![deny(rustc::diagnostic_outside_of_impl)]

0 commit comments

Comments
 (0)