Deprecate std.debug.warn

master
Isaac Freund 2020-06-02 18:43:27 +02:00
parent 0bd067d19a
commit 8e5393a779
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
1 changed files with 1 additions and 2 deletions

View File

@ -52,8 +52,7 @@ pub const LineInfo = struct {
var stderr_mutex = std.Mutex.init();
/// Tries to write to stderr, unbuffered, and ignores any error returned.
/// Does not append a newline.
/// Deprecated. Use `std.log` functions for logging.
pub fn warn(comptime fmt: []const u8, args: var) void {
const held = stderr_mutex.acquire();
defer held.release();