summaryrefslogtreecommitdiff
path: root/src/expand/derive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/expand/derive.cpp')
-rw-r--r--src/expand/derive.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/expand/derive.cpp b/src/expand/derive.cpp
index 8bd73295..3b20607b 100644
--- a/src/expand/derive.cpp
+++ b/src/expand/derive.cpp
@@ -481,6 +481,15 @@ public:
mv$(code)
));
}
+
+ // Default arm
+ {
+ arms.push_back(AST::ExprNode_Match_Arm(
+ ::make_vec1( AST::Pattern() ),
+ nullptr,
+ NEWNODE(Block, {}, nullptr)
+ ));
+ }
::std::vector<AST::ExprNodeP> vals;
vals.push_back( NEWNODE(NamedValue, AST::Path("self")) );