diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-16 14:12:41 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-16 14:12:41 +0800 |
commit | 967a2fd0b278c3e8f19bf8fd189304cb36000acf (patch) | |
tree | 489405e4a2a0c2cbfbe10ff137af70b61ce299e5 /src/parse | |
parent | 124cf9fc5fb6c0b7f70ef94382efd5190019edac (diff) | |
download | mrust-967a2fd0b278c3e8f19bf8fd189304cb36000acf.tar.gz |
Expand - Attributes on enum variants and match arms
Diffstat (limited to 'src/parse')
-rw-r--r-- | src/parse/root.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp index 91f68867..b15f64ff 100644 --- a/src/parse/root.cpp +++ b/src/parse/root.cpp @@ -771,7 +771,7 @@ AST::Enum Parse_EnumDef(TokenStream& lex, AST::Module& mod, const AST::MetaItems GET_CHECK_TOK(tok, lex, TOK_COLON);
auto ty = Parse_Type(lex);
// TODO: Field attributes
- fields.push_back( ::AST::Named<TypeRef>(mv$(name), mv$(ty), true) );
+ fields.push_back( ::AST::StructItem(mv$(name), mv$(ty), true) );
} while( GET_TOK(tok, lex) == TOK_COMMA );
CHECK_TOK(tok, TOK_BRACE_CLOSE);
GET_TOK(tok, lex);
|