diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-29 12:57:03 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-29 12:57:03 +0800 |
commit | 9c5fd80efca12e1be08e0c4efad920eab794daa4 (patch) | |
tree | d74790a08a25e532493a86dc10e354d2834ea960 /src | |
parent | 8aecde47456213e13280a690a1cace4fd7dceada (diff) | |
download | mrust-9c5fd80efca12e1be08e0c4efad920eab794daa4.tar.gz |
HIR From AST - Add TODO for extern crate
Diffstat (limited to 'src')
-rw-r--r-- | src/hir/from_ast.cpp | 2 |
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) ) ); |