Skip to content

Commit 17e86d9

Browse files
committed
remove unnecessary methods from HirIdValidator
Signed-off-by: Miguel Guarniz <[email protected]>
1 parent 433a5f1 commit 17e86d9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

compiler/rustc_passes/src/hir_id_validator.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -158,18 +158,4 @@ impl<'a, 'hir> intravisit::Visitor<'hir> for HirIdValidator<'a, 'hir> {
158158
let mut inner_visitor = self.new_visitor(self.hir_map);
159159
inner_visitor.check(i.def_id, |this| intravisit::walk_impl_item(this, i));
160160
}
161-
162-
fn visit_foreign_item_ref(&mut self, _: &'hir hir::ForeignItemRef) {
163-
// Explicitly do nothing here. ForeignItemRefs contain hir::Visibility
164-
// values that actually belong to an ForeignItem instead of the ItemKind::ForeignMod
165-
// we are currently in. So for those it's correct that they have a
166-
// different owner.
167-
}
168-
169-
fn visit_impl_item_ref(&mut self, _: &'hir hir::ImplItemRef) {
170-
// Explicitly do nothing here. ImplItemRefs contain hir::Visibility
171-
// values that actually belong to an ImplItem instead of the ItemKind::Impl
172-
// we are currently in. So for those it's correct that they have a
173-
// different owner.
174-
}
175161
}

0 commit comments

Comments
 (0)