@@ -18,7 +18,7 @@ use std::sync::atomic::Ordering::Relaxed;
1818
1919use super :: query:: DepGraphQuery ;
2020use super :: serialized:: { GraphEncoder , SerializedDepGraph , SerializedDepNodeIndex } ;
21- use super :: { DepContext , DepKind , DepNode , HasDepContext , WorkProductId } ;
21+ use super :: { CurrentDepNode , DepContext , DepKind , DepNode , HasDepContext , WorkProductId } ;
2222use crate :: ich:: StableHashingContext ;
2323use crate :: query:: { QueryContext , QuerySideEffects } ;
2424
@@ -218,7 +218,7 @@ impl<K: DepKind> DepGraph<K> {
218218 where
219219 OP : FnOnce ( ) -> R ,
220220 {
221- K :: with_deps ( TaskDepsRef :: Ignore , op)
221+ K :: with_deps ( CurrentDepNode :: Untracked , TaskDepsRef :: Ignore , op)
222222 }
223223
224224 /// Used to wrap the deserialization of a query result from disk,
@@ -271,7 +271,7 @@ impl<K: DepKind> DepGraph<K> {
271271 where
272272 OP : FnOnce ( ) -> R ,
273273 {
274- K :: with_deps ( TaskDepsRef :: Forbid , op)
274+ K :: with_deps ( CurrentDepNode :: Untracked , TaskDepsRef :: Forbid , op)
275275 }
276276
277277 #[ inline( always) ]
@@ -354,7 +354,8 @@ impl<K: DepKind> DepGraphData<K> {
354354 - dep-node: {key:?}"
355355 ) ;
356356
357- let with_deps = |task_deps| K :: with_deps ( task_deps, || task ( cx, arg) ) ;
357+ let with_deps =
358+ |task_deps| K :: with_deps ( CurrentDepNode :: Regular ( key) , task_deps, || task ( cx, arg) ) ;
358359 let ( result, edges) = if cx. dep_context ( ) . is_eval_always ( key. kind ) {
359360 ( with_deps ( TaskDepsRef :: EvalAlways ) , smallvec ! [ ] )
360361 } else {
@@ -414,7 +415,7 @@ impl<K: DepKind> DepGraphData<K> {
414415 debug_assert ! ( !cx. is_eval_always( dep_kind) ) ;
415416
416417 let task_deps = Lock :: new ( TaskDeps :: default ( ) ) ;
417- let result = K :: with_deps ( TaskDepsRef :: Allow ( & task_deps) , op) ;
418+ let result = K :: with_deps ( CurrentDepNode :: Anonymous , TaskDepsRef :: Allow ( & task_deps) , op) ;
418419 let task_deps = task_deps. into_inner ( ) ;
419420 let task_deps = task_deps. reads ;
420421
0 commit comments