diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-12-27 14:36:00 -0500 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-09 08:55:36 -0800 |
| commit | 93c2ebf9944274ca9d1e97589a992ff52c04f07d (patch) | |
| tree | 8ceaf6ee4de8aa8f65c70e5fa3deb5a7964b1018 /src/libsyntax/ast_map.rs | |
| parent | b75550af5ce401a27ab777b8bb6a7d4dfd5c4f17 (diff) | |
| download | rust-93c2ebf9944274ca9d1e97589a992ff52c04f07d.tar.gz rust-93c2ebf9944274ca9d1e97589a992ff52c04f07d.zip | |
syntax: convert ast::spanned into a struct
Diffstat (limited to 'src/libsyntax/ast_map.rs')
| -rw-r--r-- | src/libsyntax/ast_map.rs | 15 |
1 files changed, 9 insertions, 6 deletions
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)); } _ => () } |
