authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-15 18:18:12+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-15 18:22:13+00:00
log64f1c27332839f5dba9463aa2be3644da0cd5008
tree9bbf53f2a7d9afc8fab92abee4ed157e6aef489f
parent5d215838a79a24c21842fbc76fd77aca4c28b162
signaturelock-open Commit is signed but in an unrecognized format.

compiler,std: fix never-mutated local variables


5 files changed, 6 insertions(+), 6 deletions(-)

lib/std/Io/Threaded.zig+1-1
...@@ -16191,7 +16191,7 @@ fn windowsCreateProcessPathExt(...@@ -16191,7 +16191,7 @@ fn windowsCreateProcessPathExt(
16191 // we iterate the matches and take note of any that are either the unappended version,16191 // we iterate the matches and take note of any that are either the unappended version,
16192 // or a version with a supported PATHEXT appended. We then try calling CreateProcessW16192 // or a version with a supported PATHEXT appended. We then try calling CreateProcessW
16193 // with the found versions in the appropriate order.16193 // with the found versions in the appropriate order.
16194 var dir = dir: {16194 const dir = dir: {
16195 // needs to be null-terminated16195 // needs to be null-terminated
16196 try dir_buf.append(arena, 0);16196 try dir_buf.append(arena, 0);
16197 defer dir_buf.shrinkRetainingCapacity(dir_path_len);16197 defer dir_buf.shrinkRetainingCapacity(dir_path_len);
lib/std/Io/Uring.zig+1-1
...@@ -2427,7 +2427,7 @@ fn batchDrainReady(batch: *Io.Batch) Io.Timeout.Error!void {...@@ -2427,7 +2427,7 @@ fn batchDrainReady(batch: *Io.Batch) Io.Timeout.Error!void {
2427 break :cond true;2427 break :cond true;
2428 },2428 },
2429 }) {2429 }) {
2430 var operation_userdata: *Io.Operation.Storage.Pending.Userdata =2430 const operation_userdata: *Io.Operation.Storage.Pending.Userdata =
2431 @ptrFromInt(next & ~@as(usize, 0b11));2431 @ptrFromInt(next & ~@as(usize, 0b11));
2432 next = operation_userdata[0];2432 next = operation_userdata[0];
2433 const completion: Completion = .{2433 const completion: Completion = .{
lib/std/fs/path.zig+2-2
...@@ -814,8 +814,8 @@ fn compareDiskDesignators(comptime T: type, kind: DiskDesignatorKind, p1: []cons...@@ -814,8 +814,8 @@ fn compareDiskDesignators(comptime T: type, kind: DiskDesignatorKind, p1: []cons
814 return eql(drive_letter1, drive_letter2);814 return eql(drive_letter1, drive_letter2);
815 },815 },
816 .unc => {816 .unc => {
817 var unc1 = parseUNC(T, p1);817 const unc1 = parseUNC(T, p1);
818 var unc2 = parseUNC(T, p2);818 const unc2 = parseUNC(T, p2);
819819
820 return eql(unc1.server, unc2.server) and820 return eql(unc1.server, unc2.server) and
821 eql(unc1.share, unc2.share);821 eql(unc1.share, unc2.share);
src/codegen/wasm/CodeGen.zig+1-1
...@@ -3477,7 +3477,7 @@ fn intSubOverflow(cg: *CodeGen, int_ty: IntType, lhs: WValue, rhs: WValue) Inner...@@ -3477,7 +3477,7 @@ fn intSubOverflow(cg: *CodeGen, int_ty: IntType, lhs: WValue, rhs: WValue) Inner
3477}3477}
34783478
3479fn intMulOverflow(cg: *CodeGen, int_ty: IntType, lhs: WValue, rhs: WValue) InnerError!OverflowResult {3479fn intMulOverflow(cg: *CodeGen, int_ty: IntType, lhs: WValue, rhs: WValue) InnerError!OverflowResult {
3480 var overflow_bit = try cg.allocLocal(Type.u32);3480 const overflow_bit = try cg.allocLocal(Type.u32);
3481 try cg.addImm32(0);3481 try cg.addImm32(0);
3482 try cg.addLocal(.local_set, overflow_bit.local.value);3482 try cg.addLocal(.local_set, overflow_bit.local.value);
34833483
src/main.zig+1-1
...@@ -4648,7 +4648,7 @@ fn runOrTestHotSwap(...@@ -4648,7 +4648,7 @@ fn runOrTestHotSwap(
4648 try argv.appendSlice(all_args[i..]);4648 try argv.appendSlice(all_args[i..]);
4649 }4649 }
46504650
4651 var child = try std.process.spawn(io, .{4651 const child = try std.process.spawn(io, .{
4652 .argv = argv.items,4652 .argv = argv.items,
4653 .stdin = .inherit,4653 .stdin = .inherit,
4654 .stdout = .inherit,4654 .stdout = .inherit,