1
Fork 0

convert ast::struct_def to a struct

This commit is contained in:
Erick Tryzelaar 2013-01-13 13:45:57 -08:00
parent 530a113bfa
commit 1f5e9ff362
6 changed files with 12 additions and 10 deletions

View file

@ -2844,7 +2844,7 @@ impl Parser {
let _ = self.get_id(); // XXX: Workaround for crazy bug.
let new_id = self.get_id();
(class_name,
item_struct(@{
item_struct(@ast::struct_def {
fields: fields,
dtor: actual_dtor,
ctor_id: if is_tuple_like { Some(new_id) } else { None }
@ -3340,7 +3340,7 @@ impl Parser {
span: d_s }
};
return @{
return @ast::struct_def {
fields: fields,
dtor: actual_dtor,
ctor_id: None