Skip to content

Commit dfe0746

Browse files
committed
remove CheckItemTypesVisitor
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
1 parent d88dfd2 commit dfe0746

File tree

1 file changed

+0
-14
lines changed
  • compiler/rustc_typeck/src/check

1 file changed

+0
-14
lines changed

compiler/rustc_typeck/src/check/mod.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ use rustc_hir as hir;
111111
use rustc_hir::def::Res;
112112
use rustc_hir::def_id::{DefId, LocalDefId};
113113
use rustc_hir::intravisit::Visitor;
114-
use rustc_hir::itemlikevisit::ItemLikeVisitor;
115114
use rustc_hir::{HirIdMap, ImplicitSelfKind, Node};
116115
use rustc_index::bit_set::BitSet;
117116
use rustc_index::vec::Idx;
@@ -933,19 +932,6 @@ impl<'a, 'tcx> MaybeInProgressTables<'a, 'tcx> {
933932
}
934933
}
935934

936-
struct CheckItemTypesVisitor<'tcx> {
937-
tcx: TyCtxt<'tcx>,
938-
}
939-
940-
impl<'tcx> ItemLikeVisitor<'tcx> for CheckItemTypesVisitor<'tcx> {
941-
fn visit_item(&mut self, i: &'tcx hir::Item<'tcx>) {
942-
check_item_type(self.tcx, i);
943-
}
944-
fn visit_trait_item(&mut self, _: &'tcx hir::TraitItem<'tcx>) {}
945-
fn visit_impl_item(&mut self, _: &'tcx hir::ImplItem<'tcx>) {}
946-
fn visit_foreign_item(&mut self, _: &'tcx hir::ForeignItem<'tcx>) {}
947-
}
948-
949935
fn typeck_item_bodies(tcx: TyCtxt<'_>, (): ()) {
950936
tcx.hir().par_body_owners(|body_owner_def_id| tcx.ensure().typeck(body_owner_def_id));
951937
}

0 commit comments

Comments
 (0)