Adjust profiling.
This commit is contained in:
parent
fe89f3236c
commit
df24315ddf
4 changed files with 38 additions and 14 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue