diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-07 18:04:21 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-11 09:35:59 -0700 |
| commit | 7538450b8d5e831dca7891bdd54ebdf25d865970 (patch) | |
| tree | 1d817db800d585202c5ee271eb5e82123c0043cc /src/libsyntax/parse/parser.rs | |
| parent | dc4869945c42b6df04487955e914319466975ae9 (diff) | |
| download | rust-7538450b8d5e831dca7891bdd54ebdf25d865970.tar.gz rust-7538450b8d5e831dca7891bdd54ebdf25d865970.zip | |
libsyntax: Remove newtype enums from libsyntax. rs=deenum
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 1c3d906e164..b2f11b8c437 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3775,7 +3775,7 @@ pub impl Parser { enum"); } - enum_def(ast::enum_def_ { variants: variants, common: common_fields }) + ast::enum_def { variants: variants, common: common_fields } } fn parse_item_enum(&self) -> item_info { @@ -3801,9 +3801,7 @@ pub impl Parser { return ( id, item_enum( - enum_def( - ast::enum_def_ { variants: ~[variant], common: None } - ), + ast::enum_def { variants: ~[variant], common: None }, generics), None ); |
