1
Fork 0

Adjust profiling.

This commit is contained in:
Camille GILLOT 2021-03-18 19:38:50 +01:00
parent fe89f3236c
commit df24315ddf
4 changed files with 38 additions and 14 deletions

View file

@ -449,9 +449,11 @@ where
let ((result, dep_node_index), diagnostics) = with_diagnostics(|diagnostics| {
tcx.start_query(job.id, diagnostics, || {
tcx.dep_context()
.dep_graph()
.with_anon_task(query.dep_kind, || query.compute(tcx, key))
tcx.dep_context().dep_graph().with_anon_task(
*tcx.dep_context(),
query.dep_kind,
|| query.compute(tcx, key),
)
})
});