summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-09 10:27:50 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-09 10:27:50 +0800
commit967ccfbfd50e0ce0aec985bcb394e34787450f75 (patch)
tree7bddc5c13047aa7b0f12247edb4a8ca965f657d6 /src/hir/from_ast.cpp
parent5d75ae0b19803ee79d191cd985b5e8896df51ccb (diff)
downloadmrust-967ccfbfd50e0ce0aec985bcb394e34787450f75.tar.gz
AST - Remove free MacroInvocation lists
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index c62cc6b9..452dca5e 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -1042,7 +1042,8 @@ void _add_mod_val_item(::HIR::Module& mod, ::std::string name, bool is_pub, ::H
(None,
),
(MacroInv,
- BUG(sp, "Stray macro invocation in " << path);
+ // Valid.
+ //BUG(sp, "Stray macro invocation in " << path);
),
(ExternBlock,
if( e.items().size() > 0 )
@@ -1179,6 +1180,8 @@ void LowerHIR_Module_Impls(const ::AST::Module& ast_mod, ::HIR::Crate& hir_crat
),
(None,
),
+ (MacroInv,
+ ),
// TODO: Associated constants
(Type,
DEBUG("- type " << item.name);
@@ -1236,6 +1239,8 @@ void LowerHIR_Module_Impls(const ::AST::Module& ast_mod, ::HIR::Crate& hir_crat
),
(None,
),
+ (MacroInv,
+ ),
(Function,
methods.insert( ::std::make_pair(item.name, ::HIR::TypeImpl::VisImplEnt< ::HIR::Function> { item.is_pub, item.is_specialisable, LowerHIR_Function(item_path, e, type) } ) );
)