Skip to content

Commit 9aaef06

Browse files
Fix the bootstrap
1 parent 02f36e5 commit 9aaef06

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustc/ty/query/config.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ impl<'tcx, M: QueryAccessors<'tcx, Key = DefId>> QueryDescription<'tcx> for M {
7373
format!("processing {:?} with query `{}`", def_id, name).into()
7474
}
7575
}
76+
77+
default fn cache_on_disk(_: TyCtxt<'tcx>, _: Self::Key, _: Option<&Self::Value>) -> bool {
78+
false
79+
}
80+
81+
default fn try_load_from_disk(_: TyCtxt<'tcx>, _: SerializedDepNodeIndex) -> Option<Self::Value> {
82+
bug!("QueryDescription::load_from_disk() called for an unsupported query.")
83+
}
7684
}
7785

7886
impl<'tcx> QueryDescription<'tcx> for queries::analysis<'tcx> {

0 commit comments

Comments
 (0)