diff --git a/std/zig/parse2.zig b/std/zig/parse2.zig index 15dbcf53c7..c58ed3ace5 100644 --- a/std/zig/parse2.zig +++ b/std/zig/parse2.zig @@ -31,10 +31,10 @@ pub fn parse(allocator: *Allocator, source: []const u8) !Tree { .tokens = token_list, .errors = Tree.ErrorList.init(arena), // TODO: Remove (not used/needed anywhere) - .arena_allocator = undefined, + .arena_allocator = tree_arena, }; - tree.root_node = try parseRoot(arena, &it, &tree); + tree.root_node = try parseRoot(&tree.arena_allocator.allocator, &it, &tree); return tree; }