about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2019-09-19 00:14:02 +0200
committerJonas Schievink <jonasschievink@gmail.com>2019-10-05 15:33:26 +0200
commit9aaef06cf6a0c4e671c51f0d13a4ae6cf8b8dec5 (patch)
treeefc02d95790b59586107a3603c423a93704954ab /src
parent02f36e52a656f1baa717538e18ae96137cbc83f9 (diff)
downloadrust-9aaef06cf6a0c4e671c51f0d13a4ae6cf8b8dec5.tar.gz
rust-9aaef06cf6a0c4e671c51f0d13a4ae6cf8b8dec5.zip
Fix the bootstrap
Diffstat (limited to 'src')
-rw-r--r--src/librustc/ty/query/config.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustc/ty/query/config.rs b/src/librustc/ty/query/config.rs
index 91082c59ba0..c4b7b9d29b9 100644
--- a/src/librustc/ty/query/config.rs
+++ b/src/librustc/ty/query/config.rs
@@ -73,6 +73,14 @@ impl<'tcx, M: QueryAccessors<'tcx, Key = DefId>> QueryDescription<'tcx> for M {
             format!("processing {:?} with query `{}`", def_id, name).into()
         }
     }
+
+    default fn cache_on_disk(_: TyCtxt<'tcx>, _: Self::Key, _: Option<&Self::Value>) -> bool {
+        false
+    }
+
+    default fn try_load_from_disk(_: TyCtxt<'tcx>, _: SerializedDepNodeIndex) -> Option<Self::Value> {
+        bug!("QueryDescription::load_from_disk() called for an unsupported query.")
+    }
 }
 
 impl<'tcx> QueryDescription<'tcx> for queries::analysis<'tcx> {