]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/query/keys.rs
Revert previous attempt at detecting unsatisfiable predicates
[rust.git] / src / librustc / ty / query / keys.rs
index 8a713e3b6a096eab6d25a88f3a4baafab793886b..cbf335ad607ef3e9f1ae84ed3825cde3a0f32df9 100644 (file)
@@ -52,6 +52,16 @@ fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
     }
 }
 
+impl<'tcx> Key for mir::interpret::LitToConstInput<'tcx> {
+    fn query_crate(&self) -> CrateNum {
+        LOCAL_CRATE
+    }
+
+    fn default_span(&self, _tcx: TyCtxt<'_>) -> Span {
+        DUMMY_SP
+    }
+}
+
 impl Key for CrateNum {
     fn query_crate(&self) -> CrateNum {
         *self
@@ -142,7 +152,7 @@ fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
     }
 }
 
-impl<'tcx> Key for ty::Const<'tcx> {
+impl<'tcx> Key for &'tcx ty::Const<'tcx> {
     fn query_crate(&self) -> CrateNum {
         LOCAL_CRATE
     }