Simplify lang item groups

This commit is contained in:
Cameron Steffen
2022-10-26 16:19:07 -05:00
parent 6621279a75
commit a6180ede5c
3 changed files with 73 additions and 82 deletions

View File

@@ -140,9 +140,6 @@ impl<'tcx> LanguageItemCollector<'tcx> {
// Matched.
self.items.set(lang_item, item_def_id);
if let Some(group) = lang_item.group() {
self.items.groups[group as usize].push(item_def_id);
}
}
// Like collect_item() above, but also checks whether the lang item is declared