From 93c2ebf9944274ca9d1e97589a992ff52c04f07d Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Thu, 27 Dec 2012 14:36:00 -0500 Subject: syntax: convert ast::spanned into a struct --- src/libsyntax/ast_map.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/libsyntax/ast_map.rs') diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index f56f0c545bf..81c7bb2abc9 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -176,12 +176,15 @@ fn map_fn(fk: visit::fn_kind, decl: fn_decl, body: blk, cx.local_id += 1u; } match fk { - visit::fk_dtor(tps, ref attrs, self_id, parent_id) => { - let dt = @{node: {id: id, attrs: (*attrs), self_id: self_id, - body: /* FIXME (#2543) */ copy body}, span: sp}; - cx.map.insert(id, node_dtor(/* FIXME (#2543) */ copy tps, dt, - parent_id, - @/* FIXME (#2543) */ copy cx.path)); + visit::fk_dtor(tps, ref attrs, self_id, parent_id) => { + let dt = @spanned { + node: {id: id, attrs: (*attrs), self_id: self_id, + body: /* FIXME (#2543) */ copy body}, + span: sp, + }; + cx.map.insert(id, node_dtor(/* FIXME (#2543) */ copy tps, dt, + parent_id, + @/* FIXME (#2543) */ copy cx.path)); } _ => () } -- cgit 1.4.1-3-g733a5