diff options
author | John Hodge <tpg@mutabah.net> | 2018-05-22 20:20:14 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-05-22 20:20:14 +0800 |
commit | f360a87c6c44f1f32c21b64c7a8a6e530737cbb0 (patch) | |
tree | 12f58229f1e4362a9f499ca39363fba662e77823 /src/parse/root.cpp | |
parent | de9ecd7a2d70359b34e77ded57e5aa9284345ac5 (diff) | |
download | mrust-f360a87c6c44f1f32c21b64c7a8a6e530737cbb0.tar.gz |
AST - Add lifetime params to & types
Diffstat (limited to 'src/parse/root.cpp')
-rw-r--r-- | src/parse/root.cpp | 2 |
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"); |