diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-18 19:38:50 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-30 18:10:08 +0200 |
| commit | df24315ddf0103a5f9ecd8d3cd15e069e3571a53 (patch) | |
| tree | f39e7b2cd3d07cc3bddea02f66cd6ef4c12ef917 /compiler/rustc_query_system/src/query | |
| parent | fe89f3236c08abd8fd2c81cdd2f41ff2066f13ac (diff) | |
| download | rust-df24315ddf0103a5f9ecd8d3cd15e069e3571a53.tar.gz rust-df24315ddf0103a5f9ecd8d3cd15e069e3571a53.zip | |
Adjust profiling.
Diffstat (limited to 'compiler/rustc_query_system/src/query')
| -rw-r--r-- | compiler/rustc_query_system/src/query/plumbing.rs | 8 |
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 b5880247475..fb8a53048fa 100644 --- a/compiler/rustc_query_system/src/query/plumbing.rs +++ b/compiler/rustc_query_system/src/query/plumbing.rs @@ -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), + ) }) }); |
