summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-19 11:15:45 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-19 11:15:45 +0800
commitb7b634f517967da41befff67d579c5a1afa8d016 (patch)
tree60f279e93a05d51acb94637c21cf5a0110bb008a /src/hir/from_ast.cpp
parenta3e8257c4f77f197c9be2dbae7aaddb81257abb2 (diff)
downloadmrust-b7b634f517967da41befff67d579c5a1afa8d016.tar.gz
AST - Macro invocations in item list
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 5c84b8f1..90ab5c2a 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -941,6 +941,9 @@ void _add_mod_val_item(::HIR::Module& mod, ::std::string name, bool is_pub, ::H
TU_MATCH(::AST::Item, (item.data), (e),
(None,
),
+ (MacroInv,
+ BUG(Span(), "Stray macro invocation in " << path);
+ ),
(Module,
_add_mod_ns_item( mod, item.name, item.is_pub, LowerHIR_Module(e, mv$(item_path)) );
),