about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBoxy <supbscripter@gmail.com>2022-09-30 22:52:02 +0100
committerBoxy <supbscripter@gmail.com>2022-09-30 22:52:02 +0100
commit611db1d3f397005199c9bd9ea70535da9d16bfcd (patch)
treed92ecf6f9ad61dd373b929c915fc1c486ed6a9e7
parentc1a9cf42b400bab235d2d1c11d35270879d8fd60 (diff)
downloadrust-611db1d3f397005199c9bd9ea70535da9d16bfcd.tar.gz
rust-611db1d3f397005199c9bd9ea70535da9d16bfcd.zip
remove unnecessary `Key` impl
-rw-r--r--compiler/rustc_query_impl/src/keys.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_query_impl/src/keys.rs b/compiler/rustc_query_impl/src/keys.rs
index 68debcffc85..47762440e29 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)
-    }
-}