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

@ -981,7 +981,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
OP: FnOnce(&mut Self) -> R,
{
let (result, dep_node) =
self.tcx().dep_graph.with_anon_task(DepKind::TraitSelect, || op(self));
self.tcx().dep_graph.with_anon_task(self.tcx(), DepKind::TraitSelect, || op(self));
self.tcx().dep_graph.read_index(dep_node);
(result, dep_node)
}