summaryrefslogtreecommitdiff
path: root/src/ast/attrs.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-03-20 12:29:44 +0800
committerJohn Hodge <tpg@mutabah.net>2016-03-20 12:29:44 +0800
commitb79e71e5f11e14516f13ea2f8437d5deaa10e653 (patch)
tree3097c0251c83e32e4e673a840f5708110a8adc4c /src/ast/attrs.hpp
parent0ee80748a3dcb97f308e9b0b71c22d28868d12cf (diff)
downloadmrust-b79e71e5f11e14516f13ea2f8437d5deaa10e653.tar.gz
Tagged Union - Rework to remove indirection
Diffstat (limited to 'src/ast/attrs.hpp')
-rw-r--r--src/ast/attrs.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ast/attrs.hpp b/src/ast/attrs.hpp
index b7b7f91c..6a6cdaa7 100644
--- a/src/ast/attrs.hpp
+++ b/src/ast/attrs.hpp
@@ -40,13 +40,13 @@ public:
TAGGED_UNION(MetaItemData, None,
- (None, ()),
- (String, (
+ (None, struct {}),
+ (String, struct {
::std::string val;
- )),
- (List, (
+ }),
+ (List, struct {
::std::vector<MetaItem> sub_items;
- ))
+ })
);
class MetaItem: