summaryrefslogtreecommitdiff
path: root/src/expand/derive.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-09-05 22:18:53 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-09-05 22:18:53 +0800
commit6ccee8db1e838a9c0c1c2c65a4a5c2a413cb5304 (patch)
tree821b60c9a410857de0db12eacdc6cb4d8420b713 /src/expand/derive.cpp
parentd99c489b854288a36b75d66b7d4c1755131b283a (diff)
downloadmrust-6ccee8db1e838a9c0c1c2c65a4a5c2a413cb5304.tar.gz
Derive RustcDecodable - Fix unit struct decode
Diffstat (limited to 'src/expand/derive.cpp')
-rw-r--r--src/expand/derive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expand/derive.cpp b/src/expand/derive.cpp
index 173e2771..1ab1a7e2 100644
--- a/src/expand/derive.cpp
+++ b/src/expand/derive.cpp
@@ -1970,7 +1970,7 @@ public:
::AST::ExprNodeP node;
TU_MATCH(AST::StructData, (str.m_data), (e),
(Unit,
- node = NEWNODE(NamedValue, mv$(base_path));
+ node = this->get_val_ok(core_name, NEWNODE(NamedValue, mv$(base_path)));
),
(Struct,
assert( !args[2] );