diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-13 13:45:57 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-14 18:15:54 -0800 |
| commit | 1f5e9ff362042fe815fddfdaf211f782aa944229 (patch) | |
| tree | e6797d32f60d32d862ad171c5beade22974f6a1f /src/libsyntax/parse | |
| parent | 530a113bfa2702b415e38f3168d5c95ee1d93718 (diff) | |
| download | rust-1f5e9ff362042fe815fddfdaf211f782aa944229.tar.gz rust-1f5e9ff362042fe815fddfdaf211f782aa944229.zip | |
convert ast::struct_def to a struct
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index b0aa96f2222..db2d951eafe 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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 |
