std.builtin: removing unused arena allocator in StackTrace.format

This commit is contained in:
John Benediktsson 2024-08-22 18:28:23 -07:00
parent c690537154
commit 4adb10df47

View File

@ -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)});
};