summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-24 18:29:42 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-24 18:29:42 +0800
commit409e832de598ee1ee0e979200551c25bb5b6cafc (patch)
tree2191d24029eb1b4e798b17ea598032bd796202c1 /src
parent620876e10d1cb21c78867231c413390dd626e953 (diff)
downloadmrust-409e832de598ee1ee0e979200551c25bb5b6cafc.tar.gz
HIR From AST - Fix emitting tuple/value constructors for named-field structs
Diffstat (limited to 'src')
-rw-r--r--src/hir/from_ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 6a43b790..053ad9b9 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -977,7 +977,7 @@ void _add_mod_val_item(::HIR::Module& mod, ::std::string name, bool is_pub, ::H
),
(Struct,
/// Add value reference
- TU_IFLET( ::AST::StructData, e.m_data, Struct, e2,
+ TU_IFLET( ::AST::StructData, e.m_data, Tuple, e2,
if( e2.ents.size() == 0 )
_add_mod_val_item( mod, item.name, item.is_pub, ::HIR::ValueItem::make_StructConstant({item_path.get_simple_path()}) );
else