Skip to content

Commit

Permalink
Use Debug for formatting the dep nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Mar 12, 2023
1 parent 867de8b commit f48ff4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_query_system/src/dep_graph/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1427,9 +1427,8 @@ pub(crate) fn print_markframe_trace<K: DepKind>(
let mut i = 0;
let mut current = frame;
while let Some(frame) = current {
// Do not try to rely on DepNode's Debug implementation, since it may panic.
let node = data.previous.index_to_node(frame.index);
eprintln!("#{i} {:?} ({})", node.kind, node.hash);
eprintln!("#{i} {:?}", node);
current = frame.parent;
i += 1;
}
Expand Down

0 comments on commit f48ff4a

Please sign in to comment.