diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-26 10:51:11 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-26 10:51:11 +0800 |
commit | 3db52a81d3891ff7030d622fd2f364cafa29c278 (patch) | |
tree | 159dbe24a4079f3f9f78f7dd0f234ae6bd7df207 /src/hir_expand/closures.cpp | |
parent | 5bbb91227cc33fcd593178bebc588d4a389d37bc (diff) | |
download | mrust-3db52a81d3891ff7030d622fd2f364cafa29c278.tar.gz |
HIR Annotate - Fix annotation on CallValue arguments
Diffstat (limited to 'src/hir_expand/closures.cpp')
-rw-r--r-- | src/hir_expand/closures.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hir_expand/closures.cpp b/src/hir_expand/closures.cpp index 9ffcf4de..86811a5e 100644 --- a/src/hir_expand/closures.cpp +++ b/src/hir_expand/closures.cpp @@ -453,6 +453,7 @@ namespace { // --- Apply the capture set for this closure to the parent --- if( m_closure_stack.size() > 0 ) { + DEBUG("> Apply to parent"); for(const auto& cap : ent.captured_vars) { mark_used_variable(node.span(), cap.first, cap.second); @@ -784,6 +785,7 @@ namespace { { if( !m_closure_stack.empty() ) { + TRACE_FUNCTION_F("_CallValue"); if( node.m_trait_used == ::HIR::ExprNode_CallValue::TraitUsed::Unknown ) { if( node.m_res_type.m_data.is_Closure() ) |