diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-12 17:18:29 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:09 -0800 |
| commit | e68ae8d7a1e78a25392e271d7ca894e0f09aa218 (patch) | |
| tree | b22e9e6b67cc782635e614e0a010179f5c3c4d7d /lib/std/debug/simple_panic.zig | |
| parent | 54e4a3456ce2d5a497a166b94737fe5407052921 (diff) | |
| download | zig-e68ae8d7a1e78a25392e271d7ca894e0f09aa218.tar.gz zig-e68ae8d7a1e78a25392e271d7ca894e0f09aa218.zip | |
update uses of std.debug.lockStdErr
Diffstat (limited to 'lib/std/debug/simple_panic.zig')
| -rw-r--r-- | lib/std/debug/simple_panic.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/debug/simple_panic.zig b/lib/std/debug/simple_panic.zig index f6ff77e04f..2d0e5abf4e 100644 --- a/lib/std/debug/simple_panic.zig +++ b/lib/std/debug/simple_panic.zig @@ -14,9 +14,9 @@ const std = @import("../std.zig"); pub fn call(msg: []const u8, ra: ?usize) noreturn { @branchHint(.cold); _ = ra; - std.debug.lockStdErr(); - const stderr: std.Io.File = .stderr(); - stderr.writeAll(msg) catch {}; + const stderr = std.debug.lockStderrWriter(&.{}); + stderr.interface.writeAll(msg) catch {}; + stderr.interface.flush(msg) catch {}; @trap(); } |
