From 3f5b6d7c2f1ea22a7801b7808603ba99afffc3d5 Mon Sep 17 00:00:00 2001 From: Alexander Ivanov Date: Fri, 28 Jul 2023 19:47:07 +0300 Subject: [PATCH] test: update closure rewrite test output --- crates/noirc_frontend/src/monomorphization/mod.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/noirc_frontend/src/monomorphization/mod.rs b/crates/noirc_frontend/src/monomorphization/mod.rs index 83cfb4087c6..5332aa206dc 100644 --- a/crates/noirc_frontend/src/monomorphization/mod.rs +++ b/crates/noirc_frontend/src/monomorphization/mod.rs @@ -1353,11 +1353,14 @@ mod tests { "#; let expected_rewrite = r#"fn main$f0() -> Field { - let closure$2 = { - let env$1 = (); - (env$l1, lambda$f1) + let closure$3 = { + let closure_variable$2 = { + let env$1 = (); + (env$l1, lambda$f1) + }; + closure_variable$l2 }; - closure$l2.1(closure$l2.0, 0) + closure$l3.1(closure$l3.0, 0) } fn lambda$f1(mut env$l1: (), x$l0: Field) -> Field { x$l0