From 3ad16e1f4545c72e84f81d0148f480dddf21578c Mon Sep 17 00:00:00 2001 From: Folkert Date: Sat, 7 May 2022 23:00:56 +0200 Subject: [PATCH] assert condition --- compiler/mono/src/inc_dec.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/mono/src/inc_dec.rs b/compiler/mono/src/inc_dec.rs index 73c53fd4e2..817a6b02a9 100644 --- a/compiler/mono/src/inc_dec.rs +++ b/compiler/mono/src/inc_dec.rs @@ -1261,6 +1261,7 @@ fn create_holl_call<'a>( CallType::HigherOrder(arena.alloc(higher_order)) } else { + debug_assert!(!holl.passed_function.owns_captured_environment); CallType::HigherOrder(holl) }, arguments,