diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-08 12:26:26 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-08 12:26:26 +0800 |
commit | 1015e9c26c6650a3d4f7f98a15e8b5b8935af9e3 (patch) | |
tree | 0016dc2577ce3c1dc8dbed6c1037a62fb891bd12 /src/hir/expr.hpp | |
parent | 2972b0f902bbdb2aab300e371c0fb618aaa928b3 (diff) | |
download | mrust-1015e9c26c6650a3d4f7f98a15e8b5b8935af9e3.tar.gz |
HIR Closures - Rework to correctly support borrow types
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r-- | src/hir/expr.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp index 569f1b9d..eabfa695 100644 --- a/src/hir/expr.hpp +++ b/src/hir/expr.hpp @@ -751,10 +751,9 @@ struct ExprNode_Closure: } m_class = Class::Unknown; bool m_is_move = false; - // - Lists captured variables to be stored in autogenerated struct - ::std::vector<unsigned int> m_var_captures; // - Path to the generated closure type ::HIR::GenericPath m_obj_path; + ::std::vector< ::HIR::ExprNodeP> m_captures; ExprNode_Closure(Span sp, args_t args, ::HIR::TypeRef rv, ::HIR::ExprNodeP code): ExprNode(mv$(sp)), |