]> 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 d64f27d9cc26ca75ffba41d0fb2d5e0789ac3193..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