diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-19 11:15:45 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-19 11:15:45 +0800 |
commit | b7b634f517967da41befff67d579c5a1afa8d016 (patch) | |
tree | 60f279e93a05d51acb94637c21cf5a0110bb008a /src/ast/ast.cpp | |
parent | a3e8257c4f77f197c9be2dbae7aaddb81257abb2 (diff) | |
download | mrust-b7b634f517967da41befff67d579c5a1afa8d016.tar.gz |
AST - Macro invocations in item list
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r-- | src/ast/ast.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index 1da79f33..8052a51e 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -262,6 +262,9 @@ Module::ItemRef Module::find_item(const ::std::string& needle, bool allow_leaves (None,
throw ::std::runtime_error("BUG: Hit a None item");
),
+ (MacroInv,
+ throw ::std::runtime_error("BUG: Hit a macro invocation");
+ ),
(Module, return ItemRef(e); ),
(Crate, return ItemRef(e.name); ),
(Type, return ItemRef(e); ),
|