Remove all checks of IntrinsicDef::must_be_overridden except for the actual overrides in codegen

This commit is contained in:
Oli Scherer
2024-03-12 16:04:52 +00:00
parent e91084180e
commit a8f71cf289
7 changed files with 11 additions and 32 deletions

View File

@@ -1365,9 +1365,7 @@ impl<'hir> Visitor<'hir> for ItemCollector<'hir> {
fn visit_impl_item(&mut self, item: &'hir ImplItem<'hir>) {
if associated_body(Node::ImplItem(item)).is_some() {
if !self.tcx.has_attr(item.owner_id.def_id, sym::rustc_intrinsic_must_be_overridden) {
self.body_owners.push(item.owner_id.def_id);
}
self.body_owners.push(item.owner_id.def_id);
}
self.impl_items.push(item.impl_item_id());