🔧 Fix all unused_mut warnings: 16 instances cleaned up

- Remove unnecessary 'mut' from variable declarations
- Clean up code in boxes/, interpreter/, mir/, backend/, and runtime/
- No functional changes, just cleaner code
This commit is contained in:
Selfhosting Dev
2025-09-11 16:34:22 +09:00
parent ba33431f02
commit faf79c5d52
8 changed files with 12 additions and 12 deletions

View File

@ -245,7 +245,7 @@ impl LLVMCompiler {
// Pre-create allocas for locals on demand (entry-only builder)
let mut allocas: HashMap<ValueId, PointerValue> = HashMap::new();
let mut entry_builder = codegen.context.create_builder();
let entry_builder = codegen.context.create_builder();
entry_builder.position_at_end(entry_bb);
// Helper: map MirType to LLVM basic type (value type)
@ -807,7 +807,7 @@ impl LLVMCompiler {
let mut a2 = i64t.const_zero();
let mut a3 = i64t.const_zero();
let mut a4 = i64t.const_zero();
let mut get_i64 =
let get_i64 =
|vid: ValueId| -> Result<inkwell::values::IntValue, String> {
let v = *vmap.get(&vid).ok_or("arg missing")?;
to_i64_any(codegen.context, &codegen.builder, v)