]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_middle/ty/query/keys.rs
ty/instance: use `ParamEnvAnd` in the `resolve_instance` query.
[rust.git] / src / librustc_middle / ty / query / keys.rs
index 438e7ed4331a3e433e6af11ee51056d6a0cc10a8..a261e484a85faada4d493a0fc16df0a29f74f62e 100644 (file)
@@ -296,14 +296,3 @@ fn default_span(&self, _tcx: TyCtxt<'_>) -> Span {
         DUMMY_SP
     }
 }
-
-impl<'tcx> Key for (ty::ParamEnv<'tcx>, DefId, SubstsRef<'tcx>) {
-    type CacheSelector = DefaultCacheSelector;
-
-    fn query_crate(&self) -> CrateNum {
-        self.1.krate
-    }
-    fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
-        tcx.def_span(self.1)
-    }
-}