| ... | @@ -166,7 +166,7 @@ pub fn translate( | ... | @@ -166,7 +166,7 @@ pub fn translate( |
| 166 | break :blk tree; | 166 | break :blk tree; |
| 167 | }; | 167 | }; |
| 168 | const arena = &tree.arena_allocator.allocator; // now we can reference the allocator | 168 | const arena = &tree.arena_allocator.allocator; // now we can reference the allocator |
| 169 | errdefer arena.deinit(); | 169 | errdefer tree.arena_allocator.deinit(); |
| 170 | tree.tokens = ast.Tree.TokenList.init(arena); | 170 | tree.tokens = ast.Tree.TokenList.init(arena); |
| 171 | tree.errors = ast.Tree.ErrorList.init(arena); | 171 | tree.errors = ast.Tree.ErrorList.init(arena); |
| 172 | | 172 | |