From 17e86d9ff9d4e3d84077febbeaf67344bcb7f6d9 Mon Sep 17 00:00:00 2001 From: Miguel Guarniz Date: Mon, 9 May 2022 19:05:29 -0400 Subject: [PATCH] remove unnecessary methods from HirIdValidator Signed-off-by: Miguel Guarniz --- compiler/rustc_passes/src/hir_id_validator.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/compiler/rustc_passes/src/hir_id_validator.rs b/compiler/rustc_passes/src/hir_id_validator.rs index 762beefe8444..23ff0a911597 100644 --- a/compiler/rustc_passes/src/hir_id_validator.rs +++ b/compiler/rustc_passes/src/hir_id_validator.rs @@ -158,18 +158,4 @@ impl<'a, 'hir> intravisit::Visitor<'hir> for HirIdValidator<'a, 'hir> { let mut inner_visitor = self.new_visitor(self.hir_map); inner_visitor.check(i.def_id, |this| intravisit::walk_impl_item(this, i)); } - - fn visit_foreign_item_ref(&mut self, _: &'hir hir::ForeignItemRef) { - // Explicitly do nothing here. ForeignItemRefs contain hir::Visibility - // values that actually belong to an ForeignItem instead of the ItemKind::ForeignMod - // we are currently in. So for those it's correct that they have a - // different owner. - } - - fn visit_impl_item_ref(&mut self, _: &'hir hir::ImplItemRef) { - // Explicitly do nothing here. ImplItemRefs contain hir::Visibility - // values that actually belong to an ImplItem instead of the ItemKind::Impl - // we are currently in. So for those it's correct that they have a - // different owner. - } }