From ba5d9d5a4198e49c6b9c1d02e4f97e24412f8f65 Mon Sep 17 00:00:00 2001 From: mlugg Date: Thu, 4 Sep 2025 01:03:02 +0100 Subject: [PATCH] remove redundant test turns out this actually has coverage in std.debug --- lib/std/debug/SelfInfo.zig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/std/debug/SelfInfo.zig b/lib/std/debug/SelfInfo.zig index 1f913efeea..c5e163eef2 100644 --- a/lib/std/debug/SelfInfo.zig +++ b/lib/std/debug/SelfInfo.zig @@ -87,11 +87,6 @@ pub fn deinit(self: *SelfInfo, gpa: Allocator) void { self.modules.deinit(gpa); if (Module.LookupCache != void) self.lookup_cache.deinit(gpa); } -test { - // `std.debug` does not currently utilize `deinit`, as it keeps hold of debug info for the - // whole lifetime of the program. Let's try to avoid it bitrotting. - _ = &deinit; -} pub fn unwindFrame(self: *SelfInfo, gpa: Allocator, context: *UnwindContext) Error!usize { comptime assert(supports_unwinding);