summaryrefslogtreecommitdiff
path: root/src/parse/root.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-05-22 20:20:14 +0800
committerJohn Hodge <tpg@mutabah.net>2018-05-22 20:20:14 +0800
commitf360a87c6c44f1f32c21b64c7a8a6e530737cbb0 (patch)
tree12f58229f1e4362a9f499ca39363fba662e77823 /src/parse/root.cpp
parentde9ecd7a2d70359b34e77ded57e5aa9284345ac5 (diff)
downloadmrust-f360a87c6c44f1f32c21b64c7a8a6e530737cbb0.tar.gz
AST - Add lifetime params to & types
Diffstat (limited to 'src/parse/root.cpp')
-rw-r--r--src/parse/root.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp
index 2b027bf9..0fcbe63a 100644
--- a/src/parse/root.cpp
+++ b/src/parse/root.cpp
@@ -374,7 +374,7 @@ AST::Function Parse_FunctionDef(TokenStream& lex, ::std::string abi, bool allow_
GET_TOK(tok, lex);
}
CHECK_TOK(tok, TOK_RWORD_SELF);
- args.push_back( ::std::make_pair( AST::Pattern(AST::Pattern::TagBind(), "self"), TypeRef(TypeRef::TagReference(), ty_sp, is_mut, TypeRef(ty_sp, "Self", 0xFFFF))) );
+ args.push_back( ::std::make_pair( AST::Pattern(AST::Pattern::TagBind(), "self"), TypeRef(TypeRef::TagReference(), ty_sp, ::std::move(lifetime), is_mut, TypeRef(ty_sp, "Self", 0xFFFF))) );
if( allow_self == false )
throw ParseError::Generic(lex, "Self binding not expected");