authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-10-09 17:45:13-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-10-09 17:46:28-07:00
log6b2ac8fa5cc645b2655a4a5f99d6d808bee4da28
tree6ccc40d139bf21b1ab93dd03a79e2167a5423417
parent2556cae4543b7f67d6547257f6684c8ea0e12ab7

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.

1 files changed, 0 insertions(+), 1 deletions(-)

lib/std/debug.zig-1
......@@ -435,7 +435,6 @@ pub const CpuContextPtr = if (cpu_context.Native == noreturn) noreturn else *con
435435/// fast and small mode. Outside of a test block, this assert
436436/// function is the correct function to use.
437437pub fn assert(ok: bool) void {
438 @disableInstrumentation();
439438 if (!ok) unreachable; // assertion failure
440439}
441440