convert ast::struct_dtor_ into a struct

This commit is contained in:
Erick Tryzelaar
2013-01-13 12:29:36 -08:00
parent 5c0d674a45
commit ebea895d02
5 changed files with 43 additions and 30 deletions

View File

@@ -185,8 +185,12 @@ fn map_fn(fk: visit::fn_kind, decl: fn_decl, body: blk,
match fk {
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},
node: ast::struct_dtor_ {
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,