1
Fork 0

Do not require the DefPathTable to construct the on-disk cache.

This commit is contained in:
Camille GILLOT 2021-06-08 22:18:53 +02:00
parent e4a6032706
commit aeb050da9f
4 changed files with 14 additions and 39 deletions

View file

@ -765,9 +765,7 @@ pub fn create_global_ctxt<'tcx>(
) -> QueryContext<'tcx> {
let sess = &compiler.session();
let def_path_table = resolver_outputs.definitions.def_path_table();
let query_result_on_disk_cache =
rustc_incremental::load_query_result_cache(sess, def_path_table);
let query_result_on_disk_cache = rustc_incremental::load_query_result_cache(sess);
let codegen_backend = compiler.codegen_backend();
let mut local_providers = *DEFAULT_QUERY_PROVIDERS;