summaryrefslogtreecommitdiff
path: root/src/hir_expand/closures.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir_expand/closures.cpp')
-rw-r--r--src/hir_expand/closures.cpp2
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() )