From 38dd6a68b702f7b34bf888a047c7b7cb93a1ae79 Mon Sep 17 00:00:00 2001 From: Mason Remaley Date: Mon, 12 Oct 2026 11:19:26 -0700 Subject: [PATCH] Remove trailing newline after diagnostics resolves #37071 --- lib/std/zon/parse.zig | 109 +++--------------------------------------- 1 file changed, 6 insertions(+), 103 deletions(-) diff --git a/lib/std/zon/parse.zig b/lib/std/zon/parse.zig index 3b10426fbb0f9992ea8f409503b4bb69a8cfbafd..98f19dcd8b862d9178367022c04ddc654f620a1c 100644 --- a/lib/std/zon/parse.zig +++ b/lib/std/zon/parse.zig @@ -117,17 +117,18 @@ pub const Diagnostics = struct { errors: []const Error, pub fn format(self: *const @This(), w: *std.Io.Writer) std.Io.Writer.Error!void { - for (self.errors) |e| { - try w.print("{s}:", .{self.path}); - try w.print("{d}:{d}: error: {s}\n", .{ + for (self.errors, 0..) |e, i| { + if (i > 0) try w.writeByte('\n'); + try w.print("{s}:{d}:{d}: error: {s}", .{ + self.path, e.loc.line + 1, e.loc.column + 1, e.msg, }); for (e.notes) |note| { - try w.print("{s}:", .{self.path}); - try w.print("{d}:{d}: note: {s}\n", .{ + try w.print("\n{s}:{d}:{d}: note: {s}", .{ + self.path, note.loc.line + 1, note.loc.column + 1, note.msg, @@ -1394,7 +1395,6 @@ test "std.zon ast errors" { ); try std.testing.expectFmt( \\input.zon:1:13: error: expected ',' after initializer - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1429,7 +1429,6 @@ test "std.zon comments" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected expression, found 'a document comment' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -1469,7 +1468,6 @@ test "std.zon fromSlice syntax error" { ); try std.testing.expectFmt( \\input.zon:1:3: error: expected expression, found 'EOF' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1610,7 +1608,6 @@ test "std.zon unions" { try std.testing.expectFmt( \\input.zon:1:4: error: unexpected field 'z' \\input.zon:1:4: note: supported: 'x', 'y' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1628,7 +1625,6 @@ test "std.zon unions" { ); try std.testing.expectFmt( \\input.zon:1:6: error: expected type 'void' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1646,7 +1642,6 @@ test "std.zon unions" { ); try std.testing.expectFmt( \\input.zon:1:2: error: expected union - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1664,7 +1659,6 @@ test "std.zon unions" { ); try std.testing.expectFmt( \\input.zon:1:2: error: expected union - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1679,7 +1673,6 @@ test "std.zon unions" { })); try std.testing.expectFmt( \\input.zon:1:2: error: expected union - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1695,7 +1688,6 @@ test "std.zon unions" { try std.testing.expectFmt( \\input.zon:1:2: error: unexpected field 'y' \\input.zon:1:2: note: supported: 'x' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1710,7 +1702,6 @@ test "std.zon unions" { })); try std.testing.expectFmt( \\input.zon:1:2: error: expected union - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -1790,7 +1781,6 @@ test "std.zon structs" { try std.testing.expectFmt( \\input.zon:1:12: error: unexpected field 'z' \\input.zon:1:12: note: supported: 'x', 'y' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1809,7 +1799,6 @@ test "std.zon structs" { try std.testing.expectFmt( \\input.zon:1:4: error: duplicate struct field name \\input.zon:1:12: note: duplicate name here - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1841,7 +1830,6 @@ test "std.zon structs" { try std.testing.expectFmt( \\input.zon:1:4: error: unexpected field 'x' \\input.zon:1:4: note: none expected - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1859,7 +1847,6 @@ test "std.zon structs" { ); try std.testing.expectFmt( \\input.zon:1:2: error: missing required field y - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1899,7 +1886,6 @@ test "std.zon structs" { try std.testing.expectError(error.ParseZon, parsed); try std.testing.expectFmt( \\input.zon:1:18: error: cannot initialize comptime field - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1942,7 +1928,6 @@ test "std.zon structs" { try std.testing.expectFmt( \\input.zon:1:1: error: types are not available in ZON \\input.zon:1:1: note: replace the type with '.' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1958,7 +1943,6 @@ test "std.zon structs" { try std.testing.expectFmt( \\input.zon:1:1: error: types are not available in ZON \\input.zon:1:1: note: replace the type with '.' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1974,7 +1958,6 @@ test "std.zon structs" { try std.testing.expectFmt( \\input.zon:1:1: error: types are not available in ZON \\input.zon:1:1: note: replace the type with '.' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -1990,7 +1973,6 @@ test "std.zon structs" { try std.testing.expectFmt( \\input.zon:1:1: error: types are not available in ZON \\input.zon:1:1: note: replace the type with '.' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2006,7 +1988,6 @@ test "std.zon structs" { try std.testing.expectFmt( \\input.zon:1:9: error: types are not available in ZON \\input.zon:1:9: note: replace the type with '.' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2085,7 +2066,6 @@ test "std.zon tuples" { ); try std.testing.expectFmt( \\input.zon:1:14: error: index 2 outside of tuple length 2 - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2103,7 +2083,6 @@ test "std.zon tuples" { ); try std.testing.expectFmt( \\input.zon:1:2: error: missing tuple field with index 1 - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2121,7 +2100,6 @@ test "std.zon tuples" { ); try std.testing.expectFmt( \\input.zon:1:2: error: expected tuple - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2139,7 +2117,6 @@ test "std.zon tuples" { ); try std.testing.expectFmt( \\input.zon:1:2: error: expected struct - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2167,7 +2144,6 @@ test "std.zon tuples" { try std.testing.expectError(error.ParseZon, parsed); try std.testing.expectFmt( \\input.zon:1:9: error: cannot initialize comptime field - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2356,7 +2332,6 @@ test "std.zon arrays and slices" { ); try std.testing.expectFmt( \\input.zon:1:3: error: index 0 outside of array of length 0 - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2373,7 +2348,6 @@ test "std.zon arrays and slices" { ); try std.testing.expectFmt( \\input.zon:1:8: error: index 1 outside of array of length 1 - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2390,7 +2364,6 @@ test "std.zon arrays and slices" { ); try std.testing.expectFmt( \\input.zon:1:2: error: expected 2 array elements; found 1 - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2407,7 +2380,6 @@ test "std.zon arrays and slices" { ); try std.testing.expectFmt( \\input.zon:1:2: error: expected 3 array elements; found 0 - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2426,7 +2398,6 @@ test "std.zon arrays and slices" { ); try std.testing.expectFmt( \\input.zon:1:3: error: expected type 'bool' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2443,7 +2414,6 @@ test "std.zon arrays and slices" { ); try std.testing.expectFmt( \\input.zon:1:3: error: expected type 'bool' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2463,7 +2433,6 @@ test "std.zon arrays and slices" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2475,7 +2444,6 @@ test "std.zon arrays and slices" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2488,7 +2456,6 @@ test "std.zon arrays and slices" { ); try std.testing.expectFmt( \\input.zon:1:3: error: pointers are not available in ZON - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2542,7 +2509,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2553,7 +2519,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2576,7 +2541,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2592,7 +2556,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2631,7 +2594,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2642,7 +2604,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2655,7 +2616,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected string - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2667,7 +2627,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:3: error: expected type 'u8' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2679,7 +2638,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:3: error: invalid escape character: 'a' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2692,7 +2650,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2703,7 +2660,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2722,7 +2678,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2738,7 +2693,6 @@ test "std.zon string literal" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2842,7 +2796,6 @@ test "std.zon enum literals" { try std.testing.expectFmt( \\input.zon:1:2: error: unexpected enum literal 'qux' \\input.zon:1:2: note: supported: 'foo', 'bar', 'baz', '@"ab\nc"' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2860,7 +2813,6 @@ test "std.zon enum literals" { try std.testing.expectFmt( \\input.zon:1:2: error: unexpected enum literal 'foobarbaz' \\input.zon:1:2: note: supported: 'foo', 'bar', 'baz', '@"ab\nc"' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2877,7 +2829,6 @@ test "std.zon enum literals" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected enum literal - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -2894,7 +2845,6 @@ test "std.zon enum literals" { ); try std.testing.expectFmt( \\input.zon:1:2: error: identifier cannot contain null bytes - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -2935,7 +2885,6 @@ test "std.zon parse bool" { \\input.zon:1:2: error: invalid expression \\input.zon:1:2: note: ZON allows identifiers 'true', 'false', 'null', 'inf', and 'nan' \\input.zon:1:2: note: precede identifier with '.' for an enum literal - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } { @@ -2947,7 +2896,6 @@ test "std.zon parse bool" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected type 'bool' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -3092,7 +3040,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:1: error: type 'i66' cannot represent value - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } { @@ -3104,7 +3051,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:1: error: type 'i66' cannot represent value - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3226,7 +3172,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:3: error: invalid digit 'a' for decimal base - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3240,7 +3185,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected type 'u8' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3254,7 +3198,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:1: error: type 'u8' cannot represent value - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3268,7 +3211,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:1: error: type 'i8' cannot represent value - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3282,7 +3224,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:1: error: type 'u8' cannot represent value - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3296,7 +3237,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:1: error: type 'u8' cannot represent value - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3310,7 +3250,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:1: error: type 'u8' cannot represent value - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3326,7 +3265,6 @@ test "std.zon parse int" { \\input.zon:1:2: error: integer literal '-0' is ambiguous \\input.zon:1:2: note: use '0' for an integer zero \\input.zon:1:2: note: use '-0.0' for a floating-point signed zero - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3342,7 +3280,6 @@ test "std.zon parse int" { \\input.zon:1:2: error: integer literal '-0' is ambiguous \\input.zon:1:2: note: use '0' for an integer zero \\input.zon:1:2: note: use '-0.0' for a floating-point signed zero - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3372,7 +3309,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected number or 'inf' after '-' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3388,7 +3324,6 @@ test "std.zon parse int" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected number or 'inf' after '-' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3402,7 +3337,6 @@ test "std.zon parse int" { })); try std.testing.expectFmt( \\input.zon:1:3: error: invalid digit 'g' for hex base - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3417,7 +3351,6 @@ test "std.zon parse int" { try std.testing.expectFmt( \\input.zon:1:1: error: number '0123' has leading zero \\input.zon:1:1: note: use '0o' prefix for octal literals - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -3438,7 +3371,6 @@ test "std.zon negative char" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected number or 'inf' after '-' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } { @@ -3450,7 +3382,6 @@ test "std.zon negative char" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected number or 'inf' after '-' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -3638,7 +3569,6 @@ test "std.zon parse float" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected number or 'inf' after '-' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3652,7 +3582,6 @@ test "std.zon parse float" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected type 'i8' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3666,7 +3595,6 @@ test "std.zon parse float" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected type 'i8' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3680,7 +3608,6 @@ test "std.zon parse float" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected type 'i8' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3694,7 +3621,6 @@ test "std.zon parse float" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected type 'i8' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3710,7 +3636,6 @@ test "std.zon parse float" { \\input.zon:1:1: error: invalid expression \\input.zon:1:1: note: ZON allows identifiers 'true', 'false', 'null', 'inf', and 'nan' \\input.zon:1:1: note: precede identifier with '.' for an enum literal - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3723,7 +3648,6 @@ test "std.zon parse float" { })); try std.testing.expectFmt( \\input.zon:1:1: error: expected number or 'inf' after '-' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3740,7 +3664,6 @@ test "std.zon parse float" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected type 'f32' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -3982,7 +3905,6 @@ test "std.zon vector" { ); try std.testing.expectFmt( \\input.zon:1:2: error: expected 2 array elements; found 1 - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -3999,7 +3921,6 @@ test "std.zon vector" { ); try std.testing.expectFmt( \\input.zon:1:13: error: index 2 outside of array of length 2 - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4016,7 +3937,6 @@ test "std.zon vector" { ); try std.testing.expectFmt( \\input.zon:1:8: error: expected type 'f32' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4033,7 +3953,6 @@ test "std.zon vector" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected type '@Vector(3, u8)' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4050,7 +3969,6 @@ test "std.zon vector" { ); try std.testing.expectFmt( \\input.zon:1:6: error: expected type 'u8' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -4244,7 +4162,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected type '?u8' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4260,7 +4177,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected type '?f32' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4276,7 +4192,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected type '?@Vector(3, u8)' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4292,7 +4207,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected type '?bool' - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4308,7 +4222,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected optional struct - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4324,7 +4237,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected optional tuple - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4340,7 +4252,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected optional union - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4356,7 +4267,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected optional array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4372,7 +4282,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected optional array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4388,7 +4297,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected optional array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4404,7 +4312,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected optional array - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4420,7 +4327,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected optional string - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4436,7 +4342,6 @@ test "std.zon add pointers" { ); try std.testing.expectFmt( \\input.zon:1:1: error: expected optional enum literal - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } } @@ -4697,7 +4602,6 @@ test "std.zon update optionals" { })); try std.testing.expectFmt( \\input.zon:1:12: error: missing required field qux - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } @@ -4825,7 +4729,6 @@ test "std.zon update unions" { })); try std.testing.expectFmt( \\input.zon:1:12: error: missing required field qux - \\ , "{f}", .{diagnostics.fmt("input.zon")}); } -- 2.54.0