convert ast::{field_,capture_item_,mt} and middle::ty::mt into structs
This commit is contained in:
parent
4bcd19f6be
commit
293cd3480c
26 changed files with 195 additions and 129 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue