From 611db1d3f397005199c9bd9ea70535da9d16bfcd Mon Sep 17 00:00:00 2001 From: Boxy Date: Fri, 30 Sep 2022 22:52:02 +0100 Subject: [PATCH] remove unnecessary `Key` impl --- compiler/rustc_query_impl/src/keys.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/compiler/rustc_query_impl/src/keys.rs b/compiler/rustc_query_impl/src/keys.rs index 68debcffc857..47762440e290 100644 --- a/compiler/rustc_query_impl/src/keys.rs +++ b/compiler/rustc_query_impl/src/keys.rs @@ -557,14 +557,3 @@ impl<'tcx> Key for (Ty<'tcx>, ty::ValTree<'tcx>) { DUMMY_SP } } - -impl<'tcx> Key for (&'tcx ty::AssocItem, &'tcx ty::AssocItem, ty::TraitRef<'tcx>) { - #[inline(always)] - fn query_crate_is_local(&self) -> bool { - self.0.def_id.krate == LOCAL_CRATE - } - - fn default_span(&self, tcx: TyCtxt<'_>) -> Span { - tcx.def_span(self.0.def_id) - } -}