Bug
Three needle files have catch unreachable on allocator operations:
src/needle/hnsw.zig line 121:
new_node.layers.append(self.allocator, std.ArrayList(usize).empty) catch unreachable;
src/needle/vsa.zig line 541:
pointers.append(v) catch unreachable;
src/needle/autonomous_refactor.zig line 489:
result.append(std.heap.page_allocator, std.ascii.toLower(c)) catch unreachable;
Fix
Replace all with try. Ensure containing functions return error unions.
Files
src/needle/hnsw.zig — 1 catch unreachable
src/needle/vsa.zig — 1 catch unreachable
src/needle/autonomous_refactor.zig — 1 catch unreachable
Verification
Bug
Three needle files have catch unreachable on allocator operations:
src/needle/hnsw.zigline 121:src/needle/vsa.zigline 541:src/needle/autonomous_refactor.zigline 489:Fix
Replace all with
try. Ensure containing functions return error unions.Files
src/needle/hnsw.zig— 1 catch unreachablesrc/needle/vsa.zig— 1 catch unreachablesrc/needle/autonomous_refactor.zig— 1 catch unreachableVerification
zig buildcompiles clean