1
Fork 0

convert ast::{field_,capture_item_,mt} and middle::ty::mt into structs

This commit is contained in:
Erick Tryzelaar 2013-01-14 21:36:27 -08:00
parent 4bcd19f6be
commit 293cd3480c
26 changed files with 195 additions and 129 deletions

View file

@ -571,7 +571,7 @@ fn mk_ser_method(
id: cx.next_id(),
node: ast::re_anon,
},
{
ast::mt {
ty: cx.ty_path(span, ~[cx.ident_of(~"__S")], ~[]),
mutbl: ast::m_imm
}
@ -634,7 +634,7 @@ fn mk_deser_method(
id: cx.next_id(),
node: ast::re_anon,
},
{
ast::mt {
ty: cx.ty_path(span, ~[cx.ident_of(~"__D")], ~[]),
mutbl: ast::m_imm
}
@ -908,7 +908,11 @@ fn mk_deser_fields(
);
ast::spanned {
node: { mutbl: field.mutbl, ident: field.ident, expr: expr },
node: ast::field_ {
mutbl: field.mutbl,
ident: field.ident,
expr: expr,
},
span: span,
}
}