about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-02-08 19:53:48 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-02-16 14:54:53 +0100
commita51a20531d7ff532486ff73abb9ad548618481ab (patch)
tree1b6f6aded903dc2e8cfdd6905efbc60ea9d8e7c1 /compiler/rustc_interface/src
parent4b34c7b766a3d64d3f2a9bff06d0e53648a11013 (diff)
downloadrust-a51a20531d7ff532486ff73abb9ad548618481ab.tar.gz
rust-a51a20531d7ff532486ff73abb9ad548618481ab.zip
Factor query arena allocation out from query caches
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 6a94d19001e..0eff576c926 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -676,9 +676,7 @@ pub fn create_global_ctxt<'tcx>(
         callback(sess, &mut local_providers, &mut extern_providers);
     }
 
-    let queries = queries.get_or_init(|| {
-        TcxQueries::new(local_providers, extern_providers, query_result_on_disk_cache)
-    });
+    let queries = queries.get_or_init(|| TcxQueries::new(query_result_on_disk_cache));
 
     sess.time("setup_global_ctxt", || {
         gcx_cell.get_or_init(move || {
@@ -690,6 +688,8 @@ pub fn create_global_ctxt<'tcx>(
                 untracked,
                 dep_graph,
                 queries.on_disk_cache.as_ref().map(OnDiskCache::as_dyn),
+                local_providers,
+                extern_providers,
                 queries.as_dyn(),
                 rustc_query_impl::query_callbacks(arena),
             )