about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/query
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-12-03 22:47:08 +0000
committerMichael Goulet <michael@errs.io>2024-12-04 16:15:44 +0000
commit988f28d442d2e959897e43a239f67d42e0297990 (patch)
treeb79efcaa62887e1f50e499df091d6dbb212ddbe2 /compiler/rustc_query_system/src/query
parent3f089971ffd41af9bfe2b362c1952b8e0809de9e (diff)
downloadrust-988f28d442d2e959897e43a239f67d42e0297990.tar.gz
rust-988f28d442d2e959897e43a239f67d42e0297990.zip
Make sure to record deps from cached task in new solver on first run
Diffstat (limited to 'compiler/rustc_query_system/src/query')
-rw-r--r--compiler/rustc_query_system/src/query/plumbing.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs
index aac8ab87c64..6fb5e37d2d0 100644
--- a/compiler/rustc_query_system/src/query/plumbing.rs
+++ b/compiler/rustc_query_system/src/query/plumbing.rs
@@ -520,9 +520,11 @@ where
     let (result, dep_node_index) =
         qcx.start_query(job_id, query.depth_limit(), Some(&diagnostics), || {
             if query.anon() {
-                return dep_graph_data.with_anon_task(*qcx.dep_context(), query.dep_kind(), || {
-                    query.compute(qcx, key)
-                });
+                return dep_graph_data.with_anon_task_inner(
+                    *qcx.dep_context(),
+                    query.dep_kind(),
+                    || query.compute(qcx, key),
+                );
             }
 
             // `to_dep_node` is expensive for some `DepKind`s.