From 6b2ac8fa5cc645b2655a4a5f99d6d808bee4da28 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 9 Oct 2026 17:45:13 -0700 Subject: [PATCH] std.debug.assert: remove `@disableInstrumentation` This was included as part of 5d583061625c1c413e11a3d14e796602ce752687 but there was no mention of it in the commit message and I didn't notice it in the review. This is a partial (one-line) revert. Let's discuss this change carefully and separately. --- lib/std/debug.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 149eb2b12fb19e0db394d10f0559f48b8d91bfc0..37a3f0d7594c8190fd1fa27060a76f7512ac55d3 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -435,7 +435,6 @@ pub const CpuContextPtr = if (cpu_context.Native == noreturn) noreturn else *con /// fast and small mode. Outside of a test block, this assert /// function is the correct function to use. pub fn assert(ok: bool) void { - @disableInstrumentation(); if (!ok) unreachable; // assertion failure } -- 2.54.0