Skip to content

Commit

Permalink
std.builtin: removing unused arena allocator in StackTrace.format
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 authored and richerfu committed Oct 28, 2024
1 parent b3f1374 commit 7002c81
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/std/builtin.zig
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ pub const StackTrace = struct {
if (builtin.os.tag == .freestanding) return;

_ = options;
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
defer arena.deinit();
const debug_info = std.debug.getSelfDebugInfo() catch |err| {
return writer.print("\nUnable to print stack trace: Unable to open debug info: {s}\n", .{@errorName(err)});
};
Expand Down

0 comments on commit 7002c81

Please sign in to comment.