Allocgate 2.0 slain (#791)

* Allocgate 2.0 slain

* Tests now compile, but they fail

* Temporary bruteforce
This commit is contained in:
Auguste Rame
2022-12-02 15:14:58 -05:00
committed by GitHub
parent f6f0a0dca5
commit 6ab2c68355
10 changed files with 34 additions and 26 deletions

View File

@@ -195,7 +195,7 @@ const Builder = struct {
self.previous_position = start;
}
fn toOwnedSlice(self: *Builder) []u32 {
fn toOwnedSlice(self: *Builder) error{OutOfMemory}![]u32 {
return self.arr.toOwnedSlice(self.arena.allocator());
}
};