about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-08 15:00:55 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-12 10:29:53 +0100
commit4c9ee595841375ab94a8f1b18c524809addaf3fa (patch)
tree50bbc568b3b7c5c2241be0b924217f3a6f47598a /src/libsyntax
parent4bf7c33b79405f4cd6c2b6dd05a2bc270e3658a2 (diff)
downloadrust-4c9ee595841375ab94a8f1b18c524809addaf3fa.tar.gz
rust-4c9ee595841375ab94a8f1b18c524809addaf3fa.zip
Reintroduce the original debug formatting for NodeIds
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index b5ef14689f9..4d56acabf1b 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -217,6 +217,7 @@ mod node_id_inner {
     newtype_index! {
         pub struct NodeId {
             ENCODABLE = custom
+            DEBUG_FORMAT = "NodeId({})"
         }
     }
 }