summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-03-18 19:38:50 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-03-30 18:10:08 +0200
commitdf24315ddf0103a5f9ecd8d3cd15e069e3571a53 (patch)
treef39e7b2cd3d07cc3bddea02f66cd6ef4c12ef917 /compiler/rustc_trait_selection/src
parentfe89f3236c08abd8fd2c81cdd2f41ff2066f13ac (diff)
downloadrust-df24315ddf0103a5f9ecd8d3cd15e069e3571a53.tar.gz
rust-df24315ddf0103a5f9ecd8d3cd15e069e3571a53.zip
Adjust profiling.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs
index 45680c90cdc..0a15ca87d16 100644
--- a/compiler/rustc_trait_selection/src/traits/select/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs
@@ -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)
     }