From 985da41e206b0d3fa89bea1847af19a02bf78229 Mon Sep 17 00:00:00 2001 From: Tom French Date: Mon, 11 Sep 2023 20:33:49 +0100 Subject: [PATCH] fix: Fix `update_acir` deleting all debug information --- crates/noirc_errors/src/debug_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/noirc_errors/src/debug_info.rs b/crates/noirc_errors/src/debug_info.rs index f62ab08dd77..946841c279b 100644 --- a/crates/noirc_errors/src/debug_info.rs +++ b/crates/noirc_errors/src/debug_info.rs @@ -33,7 +33,7 @@ impl DebugInfo { let old_locations = mem::take(&mut self.locations); for (old_opcode_location, source_locations) in old_locations { - let _ = update_map.new_locations(old_opcode_location).map(|new_opcode_location| { + update_map.new_locations(old_opcode_location).for_each(|new_opcode_location| { self.locations.insert(new_opcode_location, source_locations.clone()); }); }