summaryrefslogtreecommitdiff
path: root/src/hir_expand
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-01 10:37:24 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-01 10:37:24 +0800
commite5a51fcee6b0fd19cba97ce5e5f37f6889258581 (patch)
tree6619fd513eb497d748d08b6a2a02c8a16e56d700 /src/hir_expand
parent7ab71bed81dbaa42c670e84eb74de63048db0ccf (diff)
downloadmrust-e5a51fcee6b0fd19cba97ce5e5f37f6889258581.tar.gz
(minor) Add TODO regarding by-borrow closure captures
Diffstat (limited to 'src/hir_expand')
-rw-r--r--src/hir_expand/closures.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir_expand/closures.cpp b/src/hir_expand/closures.cpp
index 7ca4fd25..fb30efe6 100644
--- a/src/hir_expand/closures.cpp
+++ b/src/hir_expand/closures.cpp
@@ -494,6 +494,7 @@ namespace {
// - Types of captured variables (to be monomorphised)
::std::vector< ::HIR::VisEnt< ::HIR::TypeRef> > capture_types;
for(const auto binding_idx : node.m_var_captures) {
+ // TODO: By-borrow captures (check the value usage type)
auto ty_mono = monomorphise_type_with(sp, m_variable_types.at(binding_idx).clone(), monomorph_cb);
// - Fix type to replace closure types with known paths
ExprVisitor_Fixup::fix_type(m_resolve.m_crate, ty_mono);