diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/expand/derive.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expand/derive.cpp b/src/expand/derive.cpp index 564f3b0e..ac9842a7 100644 --- a/src/expand/derive.cpp +++ b/src/expand/derive.cpp @@ -772,8 +772,8 @@ public: pats_b.push_back( ::AST::Pattern(::AST::Pattern::TagBind(), name_b, ::AST::PatternBinding::Type::REF) ); nodes.push_back(this->make_compare_and_ret( sp, core_name, - NEWNODE(NamedValue, AST::Path(name_a)), - NEWNODE(NamedValue, AST::Path(name_b)) + NEWNODE(Deref, NEWNODE(NamedValue, AST::Path(name_a))), + NEWNODE(Deref, NEWNODE(NamedValue, AST::Path(name_b))) )); } @@ -795,8 +795,8 @@ public: pats_b.push_back( ::std::make_pair(fld.m_name, ::AST::Pattern(::AST::Pattern::TagBind(), name_b, ::AST::PatternBinding::Type::REF)) ); nodes.push_back(this->make_compare_and_ret( sp, core_name, - NEWNODE(NamedValue, AST::Path(name_a)), - NEWNODE(NamedValue, AST::Path(name_b)) + NEWNODE(Deref, NEWNODE(NamedValue, AST::Path(name_a))), + NEWNODE(Deref, NEWNODE(NamedValue, AST::Path(name_b))) )); } |