diff options
| author | bors <bors@rust-lang.org> | 2013-08-06 08:44:05 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-06 08:44:05 -0700 |
| commit | 3dfb55ab09a8533da7c5bf559c923685d5d64dc1 (patch) | |
| tree | bdd4358cae6921f85a47492dcdf8d332da1bfdcd /src/libsyntax | |
| parent | ba3d03d3a4836aa5776ca8c4cb0e9982b00f516b (diff) | |
| parent | 53c6de56840b72a75909d5d51babb4511dee5a83 (diff) | |
| download | rust-3dfb55ab09a8533da7c5bf559c923685d5d64dc1.tar.gz rust-3dfb55ab09a8533da7c5bf559c923685d5d64dc1.zip | |
auto merge of #8313 : msullivan/rust/cleanup, r=catamorphism
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_map.rs | 8 | ||||
| -rw-r--r-- | src/libsyntax/ast_util.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index 5cba22a8e23..6b4da9671a9 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -466,11 +466,11 @@ pub fn node_id_to_str(map: map, id: NodeId, itr: @ident_interner) -> ~str { Some(&node_local(ident)) => { fmt!("local (id=%?, name=%s)", id, itr.get(ident.name)) } - Some(&node_block(_)) => { - fmt!("block") + Some(&node_block(ref block)) => { + fmt!("block %s (id=%?)", pprust::block_to_str(block, itr), id) } - Some(&node_struct_ctor(*)) => { - fmt!("struct_ctor") + Some(&node_struct_ctor(_, _, path)) => { + fmt!("struct_ctor %s (id=%?)", path_to_str(*path, itr), id) } } } diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 11d3740be3f..84e6544f780 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -410,7 +410,7 @@ impl IdVisitor { impl Visitor<()> for IdVisitor { fn visit_mod(@mut self, module: &_mod, - span: span, + _span: span, node_id: NodeId, env: ()) { (self.visit_callback)(node_id); |
