Skip to content

Commit 611db1d

Browse files
committed
remove unnecessary Key impl
1 parent c1a9cf4 commit 611db1d

File tree

1 file changed

+0
-11
lines changed
  • compiler/rustc_query_impl/src

1 file changed

+0
-11
lines changed

compiler/rustc_query_impl/src/keys.rs

-11
Original file line numberDiff line numberDiff line change
@@ -557,14 +557,3 @@ impl<'tcx> Key for (Ty<'tcx>, ty::ValTree<'tcx>) {
557557
DUMMY_SP
558558
}
559559
}
560-
561-
impl<'tcx> Key for (&'tcx ty::AssocItem, &'tcx ty::AssocItem, ty::TraitRef<'tcx>) {
562-
#[inline(always)]
563-
fn query_crate_is_local(&self) -> bool {
564-
self.0.def_id.krate == LOCAL_CRATE
565-
}
566-
567-
fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
568-
tcx.def_span(self.0.def_id)
569-
}
570-
}

0 commit comments

Comments
 (0)