diff options
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r-- | src/mir/from_hir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index 7ead584c..94df9164 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -1583,6 +1583,7 @@ namespace { vals.push_back( ::MIR::LValue::make_Variable(cap_idx) ); } else { + // TODO: Get correct borrow type (based on annotations stored in the node) auto borrow_ty = ::HIR::BorrowType::Shared; auto lval = m_builder.lvalue_or_temp( node.span(), ::HIR::TypeRef::new_borrow(borrow_ty, m_variable_types[cap_idx].clone()), |