Use Debug for formatting the dep nodes

This commit is contained in:
John Kåre Alsaker 2023-03-09 08:37:51 +01:00
parent 867de8bbb8
commit f48ff4a2cf

View File

@ -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;
}