Skip to content

Commit

Permalink
Fix the bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Oct 5, 2019
1 parent 02f36e5 commit 9aaef06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/librustc/ty/query/config.rs
Expand Up @@ -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> {
Expand Down

0 comments on commit 9aaef06

Please sign in to comment.