about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMiguel Guarniz <mi9uel9@gmail.com>2022-05-09 19:05:29 -0400
committerMiguel Guarniz <mi9uel9@gmail.com>2022-05-13 11:46:06 -0400
commit17e86d9ff9d4e3d84077febbeaf67344bcb7f6d9 (patch)
tree56fcbdfa9a8ad3c8065a9ad246863bc645773f1c
parent433a5f11443f2658c623018e7bea26b15093c033 (diff)
downloadrust-17e86d9ff9d4e3d84077febbeaf67344bcb7f6d9.tar.gz
rust-17e86d9ff9d4e3d84077febbeaf67344bcb7f6d9.zip
remove unnecessary methods from HirIdValidator
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
-rw-r--r--compiler/rustc_passes/src/hir_id_validator.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/compiler/rustc_passes/src/hir_id_validator.rs b/compiler/rustc_passes/src/hir_id_validator.rs
index 762beefe844..23ff0a91159 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.
-    }
 }