diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-28 17:23:21 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-28 17:23:21 +0800 |
commit | 09431cd6ff866647341671d0a2ed2ebd7b85feb3 (patch) | |
tree | bb998ae4cc1875a69cb575e57b6298f2349688ed | |
parent | e6776e378906eb2c97ca6ddc7e841982e99d6d33 (diff) | |
download | mrust-09431cd6ff866647341671d0a2ed2ebd7b85feb3.tar.gz |
Expand - Run expand on types in `static`/`const` items
-rw-r--r-- | src/expand/mod.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp index 94e8de81..641dd12f 100644 --- a/src/expand/mod.cpp +++ b/src/expand/mod.cpp @@ -649,6 +649,7 @@ void Expand_Impl(::AST::Crate& crate, LList<const AST::Module*> modstack, ::AST: ), (Static, Expand_Expr(crate, modstack, e.value()); + Expand_Type(crate, modstack, mod, e.type()); ), (Type, Expand_Type(crate, modstack, mod, e.type()); @@ -843,6 +844,7 @@ void Expand_Mod(::AST::Crate& crate, LList<const AST::Module*> modstack, ::AST:: ), (Static, Expand_Expr(crate, modstack, e.value()); + Expand_Type(crate, modstack, mod, e.type()); ), (Type, Expand_Type(crate, modstack, mod, e.type()); @@ -868,6 +870,7 @@ void Expand_Mod(::AST::Crate& crate, LList<const AST::Module*> modstack, ::AST:: ), (Static, Expand_Expr(crate, modstack, e.value()); + Expand_Type(crate, modstack, mod, e.type()); ) ) Expand_Attrs(attrs, AttrStage::Post, crate, path, mod, dat); |