Rebase slice_group_by stabilization PR
This commit is contained in:
parent
c5c2fb1761
commit
97a720b39b
3 changed files with 2 additions and 3 deletions
|
@ -917,7 +917,7 @@ impl<'tcx> DeadVisitor<'tcx> {
|
|||
return;
|
||||
}
|
||||
dead_codes.sort_by_key(|v| v.level);
|
||||
for group in dead_codes[..].group_by(|a, b| a.level == b.level) {
|
||||
for group in dead_codes[..].chunk_by(|a, b| a.level == b.level) {
|
||||
self.lint_at_single_level(&group, participle, Some(def_id), report_on);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#![feature(let_chains)]
|
||||
#![feature(map_try_insert)]
|
||||
#![feature(min_specialization)]
|
||||
#![feature(slice_group_by)]
|
||||
#![feature(try_blocks)]
|
||||
#![deny(rustc::untranslatable_diagnostic)]
|
||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue