Make sure to record deps from cached task in new solver on first run
This commit is contained in:
parent
3f089971ff
commit
988f28d442
4 changed files with 22 additions and 10 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue