summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-29 12:57:03 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-29 12:57:03 +0800
commit9c5fd80efca12e1be08e0c4efad920eab794daa4 (patch)
treed74790a08a25e532493a86dc10e354d2834ea960 /src
parent8aecde47456213e13280a690a1cace4fd7dceada (diff)
downloadmrust-9c5fd80efca12e1be08e0c4efad920eab794daa4.tar.gz
HIR From AST - Add TODO for extern crate
Diffstat (limited to 'src')
-rw-r--r--src/hir/from_ast.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index e015dbae..b99cc0cf 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -987,6 +987,8 @@ void _add_mod_val_item(::HIR::Module& mod, ::std::string name, bool is_pub, ::H
(Crate,
// TODO: All 'extern crate' items should be normalised into a list in the crate root
// - If public, add a namespace import here referring to the root of the imported crate
+ TODO(Span(), "Handle `extern crate` in HIR lower");
+ _add_mod_ns_item( mod, item.name, item.is_pub, ::HIR::TypeItem::make_Import( ::HIR::SimplePath(e.name, {}) ) );
),
(Type,
_add_mod_ns_item( mod, item.name, item.is_pub, ::HIR::TypeItem::make_TypeAlias( LowerHIR_TypeAlias(e) ) );