convert ast::struct_def to a struct
This commit is contained in:
parent
530a113bfa
commit
1f5e9ff362
6 changed files with 12 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue