diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-22 20:03:11 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-22 20:03:11 +0800 |
commit | 2f9acf36cfd475dc48b7a46e4cdff1b284529a79 (patch) | |
tree | 50b25571223d37ad30430d573a6857b846941598 /src/expand/derive.cpp | |
parent | 96621f217b750115c01457d79a74f9676164b463 (diff) | |
download | mrust-2f9acf36cfd475dc48b7a46e4cdff1b284529a79.tar.gz |
AST+HIR - Save decoded receiver type for methods
Diffstat (limited to 'src/expand/derive.cpp')
-rw-r--r-- | src/expand/derive.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expand/derive.cpp b/src/expand/derive.cpp index 310ad104..09fd4bbc 100644 --- a/src/expand/derive.cpp +++ b/src/expand/derive.cpp @@ -234,6 +234,7 @@ class Deriver_Debug: DEBUG("node = " << *node); AST::Function fcn( + sp, AST::GenericParams(), ret_type, vec$( @@ -409,6 +410,7 @@ class Deriver_PartialEq: const AST::Path trait_path("", { AST::PathNode("cmp", {}), AST::PathNode("PartialEq", {}) }); AST::Function fcn( + sp, AST::GenericParams(), TypeRef(sp, CORETYPE_BOOL), vec$( @@ -591,6 +593,7 @@ class Deriver_Eq: const AST::Path trait_path = this->get_trait_path(); AST::Function fcn( + sp, AST::GenericParams(), TypeRef(TypeRef::TagUnit(), sp), vec$( @@ -727,6 +730,7 @@ class Deriver_Clone: const AST::Path trait_path = this->get_trait_path(); AST::Function fcn( + sp, AST::GenericParams(), TypeRef("Self", 0xFFFF), vec$( |