diff --git a/src/protocol/parser/pass_validation_linking.rs b/src/protocol/parser/pass_validation_linking.rs index 9cf01b6658a57d968b13d4096b47b6966892ca01..dd755059ac902761a6752d00a6b036909d572d6a 100644 --- a/src/protocol/parser/pass_validation_linking.rs +++ b/src/protocol/parser/pass_validation_linking.rs @@ -1616,7 +1616,6 @@ impl PassValidationLinking { fn checked_add_local(&mut self, ctx: &mut Ctx, target_scope: Scope, target_relative_pos: i32, id: VariableId) -> Result<(), ParseError> { debug_assert!(target_scope.is_block()); let local = &ctx.heap[id]; - println!("DEBUG: Adding local '{}' at relative_pos {} in scope {:?}", local.identifier.value.as_str(), target_relative_pos, target_scope); // We immediately go to the parent scope. We check the target scope // in the call at the end. That is also where we check for collisions @@ -1728,7 +1727,6 @@ impl PassValidationLinking { /// Finds a variable in the visitor's scope that must appear before the /// specified relative position within that block. fn find_variable(&self, ctx: &Ctx, mut relative_pos: i32, identifier: &Identifier) -> Option { - println!("DEBUG: Calling find_variable for '{}' at relative_pos {}", identifier.value.as_str(), relative_pos); debug_assert!(self.cur_scope.is_block()); // No need to use iterator over namespaces if here @@ -1737,13 +1735,11 @@ impl PassValidationLinking { loop { debug_assert!(scope.is_block()); let block = &ctx.heap[scope.to_block()]; - println!("DEBUG: > Looking in block {:?} at relative_pos {}", scope.to_block().0, relative_pos); for local_id in &block.locals { let local = &ctx.heap[*local_id]; if local.relative_pos_in_block < relative_pos && identifier == &local.identifier { - println!("DEBUG: > Matched at local with relative_pos {}", local.relative_pos_in_block); return Some(*local_id); } }