diff options
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); ),
|