summaryrefslogtreecommitdiff
path: root/src/hir/expr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-11 14:30:24 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-11 14:30:24 +0800
commit5af8f9e7656811f820a77c991ebef8618a99bae4 (patch)
tree163f9928281dc95de061197a6d242212a3519dc9 /src/hir/expr.hpp
parente6bea49dc8da627e7672ca9ca9863c1bbbfade2d (diff)
downloadmrust-5af8f9e7656811f820a77c991ebef8618a99bae4.tar.gz
HIR - Store path to closure object for MIR generation
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r--src/hir/expr.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp
index 4e75e321..203f878e 100644
--- a/src/hir/expr.hpp
+++ b/src/hir/expr.hpp
@@ -675,6 +675,8 @@ struct ExprNode_Closure:
// - 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;
ExprNode_Closure(Span sp, args_t args, ::HIR::TypeRef rv, ::HIR::ExprNodeP code):
ExprNode(mv$(sp)),