From 55d924ca8b312aa8de1f7f3b3e3da687ab6bf044 Mon Sep 17 00:00:00 2001 From: Ayaz Hafiz Date: Tue, 3 May 2022 18:35:50 -0400 Subject: [PATCH] Get rid of dbgs --- compiler/mono/src/ir.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/mono/src/ir.rs b/compiler/mono/src/ir.rs index 07636a2e2d..f965514fea 100644 --- a/compiler/mono/src/ir.rs +++ b/compiler/mono/src/ir.rs @@ -6451,7 +6451,7 @@ fn store_tag_pattern<'a>( stmt = new; // only if we bind one of its (sub)fields to a used name should we // extract the field - stmt = Stmt::Let(dbg!(symbol), load, arg_layout, env.arena.alloc(stmt)); + stmt = Stmt::Let(symbol, load, arg_layout, env.arena.alloc(stmt)); } StorePattern::NotProductive(new) => { // do nothing @@ -6504,7 +6504,7 @@ fn store_newtype_pattern<'a>( match argument { Identifier(symbol) => { // store immediately in the given symbol - stmt = Stmt::Let(dbg!(*symbol), load, arg_layout, env.arena.alloc(stmt)); + stmt = Stmt::Let(*symbol, load, arg_layout, env.arena.alloc(stmt)); is_productive = true; } Underscore => { @@ -6527,7 +6527,7 @@ fn store_newtype_pattern<'a>( stmt = new; // only if we bind one of its (sub)fields to a used name should we // extract the field - stmt = Stmt::Let(dbg!(symbol), load, arg_layout, env.arena.alloc(stmt)); + stmt = Stmt::Let(symbol, load, arg_layout, env.arena.alloc(stmt)); } StorePattern::NotProductive(new) => { // do nothing