summary refs log tree commit diff
path: root/src/libsyntax/ast_map
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2015-01-22 22:14:52 +0100
committerFlavio Percoco <flaper87@gmail.com>2015-02-22 02:14:24 +0100
commit6a2f16e1365160d05a3d360f21756039d1bd3254 (patch)
treebe3c95808ab82fa1b60406feb76d72f78f9113cd /src/libsyntax/ast_map
parent2b01a37ec38db9301239f0c0abcf3c695055b0ff (diff)
downloadrust-6a2f16e1365160d05a3d360f21756039d1bd3254.tar.gz
rust-6a2f16e1365160d05a3d360f21756039d1bd3254.zip
Add support for default trait impls in libsyntax
Diffstat (limited to 'src/libsyntax/ast_map')
-rw-r--r--src/libsyntax/ast_map/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ast_map/mod.rs b/src/libsyntax/ast_map/mod.rs
index ba08f61b557..7903a3a1bfc 100644
--- a/src/libsyntax/ast_map/mod.rs
+++ b/src/libsyntax/ast_map/mod.rs
@@ -1044,6 +1044,7 @@ fn node_id_to_string(map: &Map, id: NodeId, include_id: bool) -> String {
                 ItemStruct(..) => "struct",
                 ItemTrait(..) => "trait",
                 ItemImpl(..) => "impl",
+                ItemDefTrait(..) => "default impl",
                 ItemMac(..) => "macro"
             };
             format!("{} {}{}", item_str, path_str, id_str)