Skip to content

Commit f48ff4a

Browse files
committed
Use Debug for formatting the dep nodes
1 parent 867de8b commit f48ff4a

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_query_system/src/dep_graph

1 file changed

+1
-2
lines changed

compiler/rustc_query_system/src/dep_graph/graph.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1427,9 +1427,8 @@ pub(crate) fn print_markframe_trace<K: DepKind>(
14271427
let mut i = 0;
14281428
let mut current = frame;
14291429
while let Some(frame) = current {
1430-
// Do not try to rely on DepNode's Debug implementation, since it may panic.
14311430
let node = data.previous.index_to_node(frame.index);
1432-
eprintln!("#{i} {:?} ({})", node.kind, node.hash);
1431+
eprintln!("#{i} {:?}", node);
14331432
current = frame.parent;
14341433
i += 1;
14351434
}

0 commit comments

Comments
 (0)