summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-25 23:09:17 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-25 23:09:17 +0800
commit6c16703e6a3be274c4fe183ffde10fd7a20f8236 (patch)
tree8a9b0ad911f73b9e2f6357fa6534e4583165dd40 /src/hir/from_ast.cpp
parent72e2a322f52edd7bf3f37ad840f2d48be4192d62 (diff)
downloadmrust-6c16703e6a3be274c4fe183ffde10fd7a20f8236.tar.gz
AST - Convert use statements to normal items
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 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)) );
),