diff options
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r-- | src/hir/from_ast.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index 275e5845..c62cc6b9 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -1304,16 +1304,16 @@ public: auto& macros = rv.m_exported_macros; // - Extract macros from root module - for( /*const*/ auto& mac : crate.m_root_module.macros() ) { - //if( mac.data.export ) { - macros.insert( ::std::make_pair( mac.name, mv$(mac.data) ) ); - //} - } for( auto& mac : crate.m_root_module.macro_imports_res() ) { //if( mac.data->export ) { macros.insert( ::std::make_pair( mac.name, MacroRulesPtr(new MacroRules( mv$(*const_cast<MacroRules*>(mac.data)) )) ) ); //} } + for( /*const*/ auto& mac : crate.m_root_module.macros() ) { + //if( mac.data.export ) { + macros.insert( ::std::make_pair( mac.name, mv$(mac.data) ) ); + //} + } auto sp = Span(); // - Store the lang item paths so conversion code can use them. |