about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-03-09 08:37:51 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-03-12 09:55:35 +0100
commitf48ff4a2cf440088ef7f8a806190956ad4d38607 (patch)
tree000f9356247b5876ca477a96f585526a5f575d03 /compiler/rustc_query_system/src
parent867de8bbb87667a721dd409cefc294b0a1c303a1 (diff)
downloadrust-f48ff4a2cf440088ef7f8a806190956ad4d38607.tar.gz
rust-f48ff4a2cf440088ef7f8a806190956ad4d38607.zip
Use `Debug` for formatting the dep nodes
Diffstat (limited to 'compiler/rustc_query_system/src')
-rw-r--r--compiler/rustc_query_system/src/dep_graph/graph.rs3
1 files changed, 1 insertions, 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<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;
     }