chore(joinir): Clarify TODO comment in exit_binding.rs
Phase 179-A Step 4: Update TODO comment to be more specific about the future improvement path (using MirBuilder's next_value_id()). Changed vague "TODO: This should be delegated to a proper ValueId allocator" to clear "Future improvement: Delegate to MirBuilder's next_value_id()". Note: Other TODOs in loop_patterns/mod.rs are placeholder tests waiting for future implementation and are intentionally kept as-is.
This commit is contained in:
@ -176,8 +176,8 @@ impl<'a> ExitBindingBuilder<'a> {
|
|||||||
|
|
||||||
/// Allocate a new ValueId for a post-loop carrier
|
/// Allocate a new ValueId for a post-loop carrier
|
||||||
///
|
///
|
||||||
/// TODO: This should be delegated to a proper ValueId allocator
|
/// Phase 193-4: Temporary sequential allocation strategy.
|
||||||
/// For now, we use a placeholder strategy
|
/// Future improvement: Delegate to MirBuilder's next_value_id() for proper allocation.
|
||||||
fn allocate_new_value_id(&self) -> ValueId {
|
fn allocate_new_value_id(&self) -> ValueId {
|
||||||
// Find the maximum ValueId in current variable_map
|
// Find the maximum ValueId in current variable_map
|
||||||
let max_id = self.variable_map.values()
|
let max_id = self.variable_map.values()
|
||||||
|
|||||||
Reference in New Issue
Block a user