diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-01 10:54:04 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-01 10:54:04 +0800 |
commit | 4326517b27cc4492aed4145c4c855e4991740e33 (patch) | |
tree | e5d2b3af54f1491d961fb79456566b8b596aff21 /src/expand/derive.cpp | |
parent | a3704de1c22d9fcfb4c5744995e43d91b9913c47 (diff) | |
download | mrust-4326517b27cc4492aed4145c4c855e4991740e33.tar.gz |
AST - Add specialisable tag to impl items
Diffstat (limited to 'src/expand/derive.cpp')
-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 e50d881b..5f4a1a10 100644 --- a/src/expand/derive.cpp +++ b/src/expand/derive.cpp @@ -66,7 +66,7 @@ class Deriver_Debug: fcn.set_code( NEWNODE(AST::ExprNode_Block, vec$(mv$(node)), ::std::unique_ptr<AST::Module>()) ); AST::Impl rv( AST::ImplDef( sp, AST::MetaItems(), p, make_spanned(sp, debug_trait), type ) ); - rv.add_function(false, "fmt", mv$(fcn)); + rv.add_function(false, false, "fmt", mv$(fcn)); return mv$(rv); } @@ -169,7 +169,7 @@ class Deriver_PartialEq: } AST::Impl rv( AST::ImplDef( sp, AST::MetaItems(), mv$(params), make_spanned(sp, trait_path), type ) ); - rv.add_function(false, "eq", mv$(fcn)); + rv.add_function(false, false, "eq", mv$(fcn)); return mv$(rv); } public: @@ -345,7 +345,7 @@ class Deriver_Eq: } AST::Impl rv( AST::ImplDef( sp, AST::MetaItems(), mv$(params), make_spanned(sp, trait_path), type ) ); - rv.add_function(false, "assert_receiver_is_total_eq", mv$(fcn)); + rv.add_function(false, false, "assert_receiver_is_total_eq", mv$(fcn)); return mv$(rv); } AST::ExprNodeP assert_is_eq(const AST::Path& method_path, AST::ExprNodeP val) const { @@ -485,7 +485,7 @@ class Deriver_Clone: } AST::Impl rv( AST::ImplDef( sp, AST::MetaItems(), mv$(params), make_spanned(sp, trait_path), type ) ); - rv.add_function(false, "clone", mv$(fcn)); + rv.add_function(false, false, "clone", mv$(fcn)); return mv$(rv); } AST::ExprNodeP clone_val(AST::ExprNodeP val) const { |