1
Fork 0

Make sure to record deps from cached task in new solver on first run

This commit is contained in:
Michael Goulet 2024-12-03 22:47:08 +00:00
parent 3f089971ff
commit 988f28d442
4 changed files with 22 additions and 10 deletions

View file

@ -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.