diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-05-28 13:45:16 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-05-28 13:45:16 +0800 |
commit | 6747de8643ffd4a0a1705ac4c00c8cfb9a957154 (patch) | |
tree | 70b463241e2dcccd247afddf1fc1135c4f547127 /src/expand/mod.cpp | |
parent | 99350d82f33acbbd3968dd0e45cfcfa415373b19 (diff) | |
download | mrust-6747de8643ffd4a0a1705ac4c00c8cfb9a957154.tar.gz |
AST - Refactor to make unit-like structs their own variant
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r-- | src/expand/mod.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp index 788b2109..1ee2e19e 100644 --- a/src/expand/mod.cpp +++ b/src/expand/mod.cpp @@ -896,6 +896,8 @@ void Expand_Mod(::AST::Crate& crate, LList<const AST::Module*> modstack, ::AST:: (Struct, TU_MATCH(AST::StructData, (e.m_data), (sd), + (Unit, + ), (Struct, for(auto it = sd.ents.begin(); it != sd.ents.end(); ) { auto& si = *it; |