summaryrefslogtreecommitdiff
path: root/src/hir/expr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-08 12:26:26 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-08 12:26:26 +0800
commit1015e9c26c6650a3d4f7f98a15e8b5b8935af9e3 (patch)
tree0016dc2577ce3c1dc8dbed6c1037a62fb891bd12 /src/hir/expr.hpp
parent2972b0f902bbdb2aab300e371c0fb618aaa928b3 (diff)
downloadmrust-1015e9c26c6650a3d4f7f98a15e8b5b8935af9e3.tar.gz
HIR Closures - Rework to correctly support borrow types
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r--src/hir/expr.hpp3
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)),