Skip to content

Commit 6a0d37b

Browse files
committed
Fix some missed query data
1 parent 0f43800 commit 6a0d37b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/librustc/ty/query/plumbing.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
363363
)
364364
);
365365

366+
self.sess.profiler(|p| p.record_query(Q::CATEGORY));
367+
366368
let job = match JobOwner::try_get(self, span, &key) {
367369
TryGetJob::NotYetStarted(job) => job,
368370
TryGetJob::JobCompleted(result) => {
@@ -384,10 +386,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
384386

385387
if dep_node.kind.is_anon() {
386388
profq_msg!(self, ProfileQueriesMsg::ProviderBegin);
387-
self.sess.profiler(|p| {
388-
p.start_activity(Q::CATEGORY);
389-
p.record_query(Q::CATEGORY);
390-
});
389+
self.sess.profiler(|p| p.start_activity(Q::CATEGORY));
391390

392391
let res = job.start(self, |tcx| {
393392
tcx.dep_graph.with_anon_task(dep_node.kind, || {

0 commit comments

Comments
 (0)