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/hir_expand/closures.cpp | |
parent | 96621f217b750115c01457d79a74f9676164b463 (diff) | |
download | mrust-2f9acf36cfd475dc48b7a46e4cdff1b284529a79.tar.gz |
AST+HIR - Save decoded receiver type for methods
Diffstat (limited to 'src/hir_expand/closures.cpp')
-rw-r--r-- | src/hir_expand/closures.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir_expand/closures.cpp b/src/hir_expand/closures.cpp index 03b5e8f2..a6246a2c 100644 --- a/src/hir_expand/closures.cpp +++ b/src/hir_expand/closures.cpp @@ -166,6 +166,7 @@ namespace { mv$(params), mv$(trait_params), mv$(closure_type), make_map1( ::std::string("call_once"), ::HIR::TraitImpl::ImplEnt< ::HIR::Function> { false, ::HIR::Function { + ::HIR::Function::Receiver::Value, "rust", false, false, {}, make_vec2( @@ -197,6 +198,7 @@ namespace { mv$(params), mv$(trait_params), mv$(closure_type), make_map1( ::std::string("call_mut"), ::HIR::TraitImpl::ImplEnt< ::HIR::Function> { false, ::HIR::Function { + ::HIR::Function::Receiver::BorrowUnique, "rust", false, false, {}, make_vec2( @@ -229,6 +231,7 @@ namespace { mv$(params), mv$(trait_params), mv$(closure_type), make_map1( ::std::string("call"), ::HIR::TraitImpl::ImplEnt< ::HIR::Function> { false, ::HIR::Function { + ::HIR::Function::Receiver::BorrowShared, "rust", false, false, {}, make_vec2( |