From f48ff4a2cf440088ef7f8a806190956ad4d38607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Thu, 9 Mar 2023 08:37:51 +0100 Subject: [PATCH] Use `Debug` for formatting the dep nodes --- compiler/rustc_query_system/src/dep_graph/graph.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/rustc_query_system/src/dep_graph/graph.rs b/compiler/rustc_query_system/src/dep_graph/graph.rs index 0963e8e8bdf..02cb9c452a8 100644 --- a/compiler/rustc_query_system/src/dep_graph/graph.rs +++ b/compiler/rustc_query_system/src/dep_graph/graph.rs @@ -1427,9 +1427,8 @@ pub(crate) fn print_markframe_trace( 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; }