From 6c16703e6a3be274c4fe183ffde10fd7a20f8236 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 25 Sep 2016 23:09:17 +0800 Subject: AST - Convert use statements to normal items --- src/hir/from_ast.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/hir/from_ast.cpp') diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index e723d26b..46e9afa1 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -1036,6 +1036,9 @@ void _add_mod_val_item(::HIR::Module& mod, ::std::string name, bool is_pub, ::H (MacroInv, BUG(Span(), "Stray macro invocation in " << path); ), + (Use, + // Ignore - The index is used to add `Import`s + ), (Module, _add_mod_ns_item( mod, item.name, item.is_pub, LowerHIR_Module(e, mv$(item_path)) ); ), -- cgit v1.2.3