diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-18 13:37:01 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-18 13:37:01 +0800 |
commit | 8f1a4e56874b0321081161aedfa4da768ffcc65e (patch) | |
tree | 487b8e19aade7114268a1db3fe7f6f321bf8a1ac /src/hir/from_ast.cpp | |
parent | 8b2dbb2481abadec1f5d5cb0af888ca2916b252f (diff) | |
download | mrust-8f1a4e56874b0321081161aedfa4da768ffcc65e.tar.gz |
HIR - Fix bug in initialising ExprNode_Let
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r-- | src/hir/from_ast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index b857ad67..2c97b550 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -597,7 +597,7 @@ void _add_mod_val_item(::HIR::Module& mod, ::std::string name, bool is_pub, ::H auto& submod = *module.anon_mods()[i]; ::std::string name = FMT("#" << i); auto item_path = path + name; - _add_mod_ns_item( mod, name, false, LowerHIR_Module(submod, mv$(item_path)) ); + _add_mod_ns_item( mod, mv$(name), false, ::HIR::TypeItem::make_Module( LowerHIR_Module(submod, mv$(item_path)) ) ); } return mod; |