|
12 | 12 | use std::fmt; |
13 | 13 |
|
14 | 14 | use rustc_errors::{DiagInner, TRACK_DIAGNOSTIC}; |
15 | | -use rustc_middle::dep_graph::{DepNodeExt, TaskDepsRef}; |
| 15 | +use rustc_middle::dep_graph::dep_node::default_dep_kind_debug; |
| 16 | +use rustc_middle::dep_graph::{DepContext, DepKind, DepNode, DepNodeExt, TaskDepsRef}; |
16 | 17 | use rustc_middle::ty::tls; |
17 | 18 | use rustc_query_impl::QueryCtxt; |
18 | | -use rustc_query_system::dep_graph::dep_node::default_dep_kind_debug; |
19 | | -use rustc_query_system::dep_graph::{DepContext, DepKind, DepNode}; |
20 | 19 |
|
21 | 20 | fn track_span_parent(def_id: rustc_span::def_id::LocalDefId) { |
22 | 21 | tls::with_context_opt(|icx| { |
@@ -107,9 +106,9 @@ pub fn dep_node_debug(node: DepNode, f: &mut std::fmt::Formatter<'_>) -> std::fm |
107 | 106 | pub fn setup_callbacks() { |
108 | 107 | rustc_span::SPAN_TRACK.swap(&(track_span_parent as fn(_))); |
109 | 108 | rustc_hir::def_id::DEF_ID_DEBUG.swap(&(def_id_debug as fn(_, &mut fmt::Formatter<'_>) -> _)); |
110 | | - rustc_query_system::dep_graph::dep_node::DEP_KIND_DEBUG |
| 109 | + rustc_middle::dep_graph::dep_node::DEP_KIND_DEBUG |
111 | 110 | .swap(&(dep_kind_debug as fn(_, &mut fmt::Formatter<'_>) -> _)); |
112 | | - rustc_query_system::dep_graph::dep_node::DEP_NODE_DEBUG |
| 111 | + rustc_middle::dep_graph::dep_node::DEP_NODE_DEBUG |
113 | 112 | .swap(&(dep_node_debug as fn(_, &mut fmt::Formatter<'_>) -> _)); |
114 | 113 | TRACK_DIAGNOSTIC.swap(&(track_diagnostic as _)); |
115 | 114 | } |
0 commit comments