summaryrefslogtreecommitdiff
path: root/src/expand/derive.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-11 15:00:51 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-11 15:00:51 +0800
commiteea8d7e37ffdb8886e4dc3ab1c1c715df3935ca8 (patch)
treef6bc07241845027de9482115dc588a93cc8d7da1 /src/expand/derive.cpp
parent5585040f36b6f8ffd6c0c44689525ce29ccb74d9 (diff)
downloadmrust-eea8d7e37ffdb8886e4dc3ab1c1c715df3935ca8.tar.gz
HIR Typecheck - Fixes for `trait Int: Add<Self>`
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 fdb8088b..aec3de51 100644
--- a/src/expand/derive.cpp
+++ b/src/expand/derive.cpp
@@ -112,7 +112,7 @@ public:
AST::GenericParams(),
ret_type,
vec$(
- ::std::make_pair( AST::Pattern(AST::Pattern::TagBind(), "self"), TypeRef(TypeRef::TagReference(), sp, false, TypeRef("Self")) ),
+ ::std::make_pair( AST::Pattern(AST::Pattern::TagBind(), "self"), TypeRef(TypeRef::TagReference(), sp, false, TypeRef("Self", 0xFFFF)) ),
::std::make_pair( AST::Pattern(AST::Pattern::TagBind(), "f"), f_type )
)
);