authorgravatar for mason@gamesbymason.comMason Remaley <mason@gamesbymason.com> 2026-10-12 11:19:26-07:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-15 20:13:54+02:00
log0617b16a04d0980ea728ba3516d765d098ce068e
treec18f6607bef60d734fe11fa6b8e3af108b83b847
parent35d8e6324696a829bc5052d8f6b90ca4dc233433
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Remove trailing newline after diagnostics

resolves #37071

1 files changed, 6 insertions(+), 103 deletions(-)

lib/std/zon/parse.zig+6-103
...@@ -117,17 +117,18 @@ pub const Diagnostics = struct {...@@ -117,17 +117,18 @@ pub const Diagnostics = struct {
117 errors: []const Error,117 errors: []const Error,
118118
119 pub fn format(self: *const @This(), w: *std.Io.Writer) std.Io.Writer.Error!void {119 pub fn format(self: *const @This(), w: *std.Io.Writer) std.Io.Writer.Error!void {
120 for (self.errors) |e| {120 for (self.errors, 0..) |e, i| {
121 try w.print("{s}:", .{self.path});121 if (i > 0) try w.writeByte('\n');
122 try w.print("{d}:{d}: error: {s}\n", .{122 try w.print("{s}:{d}:{d}: error: {s}", .{
123 self.path,
123 e.loc.line + 1,124 e.loc.line + 1,
124 e.loc.column + 1,125 e.loc.column + 1,
125 e.msg,126 e.msg,
126 });127 });
127128
128 for (e.notes) |note| {129 for (e.notes) |note| {
129 try w.print("{s}:", .{self.path});130 try w.print("\n{s}:{d}:{d}: note: {s}", .{
130 try w.print("{d}:{d}: note: {s}\n", .{131 self.path,
131 note.loc.line + 1,132 note.loc.line + 1,
132 note.loc.column + 1,133 note.loc.column + 1,
133 note.msg,134 note.msg,
...@@ -1395,7 +1396,6 @@ test "std.zon ast errors" {...@@ -1395,7 +1396,6 @@ test "std.zon ast errors" {
1395 );1396 );
1396 try std.testing.expectFmt(1397 try std.testing.expectFmt(
1397 \\input.zon:1:13: error: expected ',' after initializer1398 \\input.zon:1:13: error: expected ',' after initializer
1398 \\
1399 , "{f}", .{diagnostics.fmt("input.zon")});1399 , "{f}", .{diagnostics.fmt("input.zon")});
1400}1400}
14011401
...@@ -1430,7 +1430,6 @@ test "std.zon comments" {...@@ -1430,7 +1430,6 @@ test "std.zon comments" {
1430 }));1430 }));
1431 try std.testing.expectFmt(1431 try std.testing.expectFmt(
1432 \\input.zon:1:1: error: expected expression, found 'a document comment'1432 \\input.zon:1:1: error: expected expression, found 'a document comment'
1433 \\
1434 , "{f}", .{diagnostics.fmt("input.zon")});1433 , "{f}", .{diagnostics.fmt("input.zon")});
1435 }1434 }
1436}1435}
...@@ -1470,7 +1469,6 @@ test "std.zon fromSlice syntax error" {...@@ -1470,7 +1469,6 @@ test "std.zon fromSlice syntax error" {
1470 );1469 );
1471 try std.testing.expectFmt(1470 try std.testing.expectFmt(
1472 \\input.zon:1:3: error: expected expression, found 'EOF'1471 \\input.zon:1:3: error: expected expression, found 'EOF'
1473 \\
1474 , "{f}", .{diagnostics.fmt("input.zon")});1472 , "{f}", .{diagnostics.fmt("input.zon")});
1475}1473}
14761474
...@@ -1611,7 +1609,6 @@ test "std.zon unions" {...@@ -1611,7 +1609,6 @@ test "std.zon unions" {
1611 try std.testing.expectFmt(1609 try std.testing.expectFmt(
1612 \\input.zon:1:4: error: unexpected field 'z'1610 \\input.zon:1:4: error: unexpected field 'z'
1613 \\input.zon:1:4: note: supported: 'x', 'y'1611 \\input.zon:1:4: note: supported: 'x', 'y'
1614 \\
1615 , "{f}", .{diagnostics.fmt("input.zon")});1612 , "{f}", .{diagnostics.fmt("input.zon")});
1616 }1613 }
16171614
...@@ -1629,7 +1626,6 @@ test "std.zon unions" {...@@ -1629,7 +1626,6 @@ test "std.zon unions" {
1629 );1626 );
1630 try std.testing.expectFmt(1627 try std.testing.expectFmt(
1631 \\input.zon:1:6: error: expected type 'void'1628 \\input.zon:1:6: error: expected type 'void'
1632 \\
1633 , "{f}", .{diagnostics.fmt("input.zon")});1629 , "{f}", .{diagnostics.fmt("input.zon")});
1634 }1630 }
16351631
...@@ -1647,7 +1643,6 @@ test "std.zon unions" {...@@ -1647,7 +1643,6 @@ test "std.zon unions" {
1647 );1643 );
1648 try std.testing.expectFmt(1644 try std.testing.expectFmt(
1649 \\input.zon:1:2: error: expected union1645 \\input.zon:1:2: error: expected union
1650 \\
1651 , "{f}", .{diagnostics.fmt("input.zon")});1646 , "{f}", .{diagnostics.fmt("input.zon")});
1652 }1647 }
16531648
...@@ -1665,7 +1660,6 @@ test "std.zon unions" {...@@ -1665,7 +1660,6 @@ test "std.zon unions" {
1665 );1660 );
1666 try std.testing.expectFmt(1661 try std.testing.expectFmt(
1667 \\input.zon:1:2: error: expected union1662 \\input.zon:1:2: error: expected union
1668 \\
1669 , "{f}", .{diagnostics.fmt("input.zon")});1663 , "{f}", .{diagnostics.fmt("input.zon")});
1670 }1664 }
16711665
...@@ -1680,7 +1674,6 @@ test "std.zon unions" {...@@ -1680,7 +1674,6 @@ test "std.zon unions" {
1680 }));1674 }));
1681 try std.testing.expectFmt(1675 try std.testing.expectFmt(
1682 \\input.zon:1:2: error: expected union1676 \\input.zon:1:2: error: expected union
1683 \\
1684 , "{f}", .{diagnostics.fmt("input.zon")});1677 , "{f}", .{diagnostics.fmt("input.zon")});
1685 }1678 }
16861679
...@@ -1696,7 +1689,6 @@ test "std.zon unions" {...@@ -1696,7 +1689,6 @@ test "std.zon unions" {
1696 try std.testing.expectFmt(1689 try std.testing.expectFmt(
1697 \\input.zon:1:2: error: unexpected field 'y'1690 \\input.zon:1:2: error: unexpected field 'y'
1698 \\input.zon:1:2: note: supported: 'x'1691 \\input.zon:1:2: note: supported: 'x'
1699 \\
1700 , "{f}", .{diagnostics.fmt("input.zon")});1692 , "{f}", .{diagnostics.fmt("input.zon")});
1701 }1693 }
17021694
...@@ -1711,7 +1703,6 @@ test "std.zon unions" {...@@ -1711,7 +1703,6 @@ test "std.zon unions" {
1711 }));1703 }));
1712 try std.testing.expectFmt(1704 try std.testing.expectFmt(
1713 \\input.zon:1:2: error: expected union1705 \\input.zon:1:2: error: expected union
1714 \\
1715 , "{f}", .{diagnostics.fmt("input.zon")});1706 , "{f}", .{diagnostics.fmt("input.zon")});
1716 }1707 }
1717}1708}
...@@ -1791,7 +1782,6 @@ test "std.zon structs" {...@@ -1791,7 +1782,6 @@ test "std.zon structs" {
1791 try std.testing.expectFmt(1782 try std.testing.expectFmt(
1792 \\input.zon:1:12: error: unexpected field 'z'1783 \\input.zon:1:12: error: unexpected field 'z'
1793 \\input.zon:1:12: note: supported: 'x', 'y'1784 \\input.zon:1:12: note: supported: 'x', 'y'
1794 \\
1795 , "{f}", .{diagnostics.fmt("input.zon")});1785 , "{f}", .{diagnostics.fmt("input.zon")});
1796 }1786 }
17971787
...@@ -1810,7 +1800,6 @@ test "std.zon structs" {...@@ -1810,7 +1800,6 @@ test "std.zon structs" {
1810 try std.testing.expectFmt(1800 try std.testing.expectFmt(
1811 \\input.zon:1:4: error: duplicate struct field name1801 \\input.zon:1:4: error: duplicate struct field name
1812 \\input.zon:1:12: note: duplicate name here1802 \\input.zon:1:12: note: duplicate name here
1813 \\
1814 , "{f}", .{diagnostics.fmt("input.zon")});1803 , "{f}", .{diagnostics.fmt("input.zon")});
1815 }1804 }
18161805
...@@ -1842,7 +1831,6 @@ test "std.zon structs" {...@@ -1842,7 +1831,6 @@ test "std.zon structs" {
1842 try std.testing.expectFmt(1831 try std.testing.expectFmt(
1843 \\input.zon:1:4: error: unexpected field 'x'1832 \\input.zon:1:4: error: unexpected field 'x'
1844 \\input.zon:1:4: note: none expected1833 \\input.zon:1:4: note: none expected
1845 \\
1846 , "{f}", .{diagnostics.fmt("input.zon")});1834 , "{f}", .{diagnostics.fmt("input.zon")});
1847 }1835 }
18481836
...@@ -1860,7 +1848,6 @@ test "std.zon structs" {...@@ -1860,7 +1848,6 @@ test "std.zon structs" {
1860 );1848 );
1861 try std.testing.expectFmt(1849 try std.testing.expectFmt(
1862 \\input.zon:1:2: error: missing required field y1850 \\input.zon:1:2: error: missing required field y
1863 \\
1864 , "{f}", .{diagnostics.fmt("input.zon")});1851 , "{f}", .{diagnostics.fmt("input.zon")});
1865 }1852 }
18661853
...@@ -1900,7 +1887,6 @@ test "std.zon structs" {...@@ -1900,7 +1887,6 @@ test "std.zon structs" {
1900 try std.testing.expectError(error.ParseZon, parsed);1887 try std.testing.expectError(error.ParseZon, parsed);
1901 try std.testing.expectFmt(1888 try std.testing.expectFmt(
1902 \\input.zon:1:18: error: cannot initialize comptime field1889 \\input.zon:1:18: error: cannot initialize comptime field
1903 \\
1904 , "{f}", .{diagnostics.fmt("input.zon")});1890 , "{f}", .{diagnostics.fmt("input.zon")});
1905 }1891 }
19061892
...@@ -1943,7 +1929,6 @@ test "std.zon structs" {...@@ -1943,7 +1929,6 @@ test "std.zon structs" {
1943 try std.testing.expectFmt(1929 try std.testing.expectFmt(
1944 \\input.zon:1:1: error: types are not available in ZON1930 \\input.zon:1:1: error: types are not available in ZON
1945 \\input.zon:1:1: note: replace the type with '.'1931 \\input.zon:1:1: note: replace the type with '.'
1946 \\
1947 , "{f}", .{diagnostics.fmt("input.zon")});1932 , "{f}", .{diagnostics.fmt("input.zon")});
1948 }1933 }
19491934
...@@ -1959,7 +1944,6 @@ test "std.zon structs" {...@@ -1959,7 +1944,6 @@ test "std.zon structs" {
1959 try std.testing.expectFmt(1944 try std.testing.expectFmt(
1960 \\input.zon:1:1: error: types are not available in ZON1945 \\input.zon:1:1: error: types are not available in ZON
1961 \\input.zon:1:1: note: replace the type with '.'1946 \\input.zon:1:1: note: replace the type with '.'
1962 \\
1963 , "{f}", .{diagnostics.fmt("input.zon")});1947 , "{f}", .{diagnostics.fmt("input.zon")});
1964 }1948 }
19651949
...@@ -1975,7 +1959,6 @@ test "std.zon structs" {...@@ -1975,7 +1959,6 @@ test "std.zon structs" {
1975 try std.testing.expectFmt(1959 try std.testing.expectFmt(
1976 \\input.zon:1:1: error: types are not available in ZON1960 \\input.zon:1:1: error: types are not available in ZON
1977 \\input.zon:1:1: note: replace the type with '.'1961 \\input.zon:1:1: note: replace the type with '.'
1978 \\
1979 , "{f}", .{diagnostics.fmt("input.zon")});1962 , "{f}", .{diagnostics.fmt("input.zon")});
1980 }1963 }
19811964
...@@ -1991,7 +1974,6 @@ test "std.zon structs" {...@@ -1991,7 +1974,6 @@ test "std.zon structs" {
1991 try std.testing.expectFmt(1974 try std.testing.expectFmt(
1992 \\input.zon:1:1: error: types are not available in ZON1975 \\input.zon:1:1: error: types are not available in ZON
1993 \\input.zon:1:1: note: replace the type with '.'1976 \\input.zon:1:1: note: replace the type with '.'
1994 \\
1995 , "{f}", .{diagnostics.fmt("input.zon")});1977 , "{f}", .{diagnostics.fmt("input.zon")});
1996 }1978 }
19971979
...@@ -2007,7 +1989,6 @@ test "std.zon structs" {...@@ -2007,7 +1989,6 @@ test "std.zon structs" {
2007 try std.testing.expectFmt(1989 try std.testing.expectFmt(
2008 \\input.zon:1:9: error: types are not available in ZON1990 \\input.zon:1:9: error: types are not available in ZON
2009 \\input.zon:1:9: note: replace the type with '.'1991 \\input.zon:1:9: note: replace the type with '.'
2010 \\
2011 , "{f}", .{diagnostics.fmt("input.zon")});1992 , "{f}", .{diagnostics.fmt("input.zon")});
2012 }1993 }
2013 }1994 }
...@@ -2086,7 +2067,6 @@ test "std.zon tuples" {...@@ -2086,7 +2067,6 @@ test "std.zon tuples" {
2086 );2067 );
2087 try std.testing.expectFmt(2068 try std.testing.expectFmt(
2088 \\input.zon:1:14: error: index 2 outside of tuple length 22069 \\input.zon:1:14: error: index 2 outside of tuple length 2
2089 \\
2090 , "{f}", .{diagnostics.fmt("input.zon")});2070 , "{f}", .{diagnostics.fmt("input.zon")});
2091 }2071 }
20922072
...@@ -2104,7 +2084,6 @@ test "std.zon tuples" {...@@ -2104,7 +2084,6 @@ test "std.zon tuples" {
2104 );2084 );
2105 try std.testing.expectFmt(2085 try std.testing.expectFmt(
2106 \\input.zon:1:2: error: missing tuple field with index 12086 \\input.zon:1:2: error: missing tuple field with index 1
2107 \\
2108 , "{f}", .{diagnostics.fmt("input.zon")});2087 , "{f}", .{diagnostics.fmt("input.zon")});
2109 }2088 }
21102089
...@@ -2122,7 +2101,6 @@ test "std.zon tuples" {...@@ -2122,7 +2101,6 @@ test "std.zon tuples" {
2122 );2101 );
2123 try std.testing.expectFmt(2102 try std.testing.expectFmt(
2124 \\input.zon:1:2: error: expected tuple2103 \\input.zon:1:2: error: expected tuple
2125 \\
2126 , "{f}", .{diagnostics.fmt("input.zon")});2104 , "{f}", .{diagnostics.fmt("input.zon")});
2127 }2105 }
21282106
...@@ -2140,7 +2118,6 @@ test "std.zon tuples" {...@@ -2140,7 +2118,6 @@ test "std.zon tuples" {
2140 );2118 );
2141 try std.testing.expectFmt(2119 try std.testing.expectFmt(
2142 \\input.zon:1:2: error: expected struct2120 \\input.zon:1:2: error: expected struct
2143 \\
2144 , "{f}", .{diagnostics.fmt("input.zon")});2121 , "{f}", .{diagnostics.fmt("input.zon")});
2145 }2122 }
21462123
...@@ -2168,7 +2145,6 @@ test "std.zon tuples" {...@@ -2168,7 +2145,6 @@ test "std.zon tuples" {
2168 try std.testing.expectError(error.ParseZon, parsed);2145 try std.testing.expectError(error.ParseZon, parsed);
2169 try std.testing.expectFmt(2146 try std.testing.expectFmt(
2170 \\input.zon:1:9: error: cannot initialize comptime field2147 \\input.zon:1:9: error: cannot initialize comptime field
2171 \\
2172 , "{f}", .{diagnostics.fmt("input.zon")});2148 , "{f}", .{diagnostics.fmt("input.zon")});
2173 }2149 }
2174}2150}
...@@ -2357,7 +2333,6 @@ test "std.zon arrays and slices" {...@@ -2357,7 +2333,6 @@ test "std.zon arrays and slices" {
2357 );2333 );
2358 try std.testing.expectFmt(2334 try std.testing.expectFmt(
2359 \\input.zon:1:3: error: index 0 outside of array of length 02335 \\input.zon:1:3: error: index 0 outside of array of length 0
2360 \\
2361 , "{f}", .{diagnostics.fmt("input.zon")});2336 , "{f}", .{diagnostics.fmt("input.zon")});
2362 }2337 }
23632338
...@@ -2374,7 +2349,6 @@ test "std.zon arrays and slices" {...@@ -2374,7 +2349,6 @@ test "std.zon arrays and slices" {
2374 );2349 );
2375 try std.testing.expectFmt(2350 try std.testing.expectFmt(
2376 \\input.zon:1:8: error: index 1 outside of array of length 12351 \\input.zon:1:8: error: index 1 outside of array of length 1
2377 \\
2378 , "{f}", .{diagnostics.fmt("input.zon")});2352 , "{f}", .{diagnostics.fmt("input.zon")});
2379 }2353 }
23802354
...@@ -2391,7 +2365,6 @@ test "std.zon arrays and slices" {...@@ -2391,7 +2365,6 @@ test "std.zon arrays and slices" {
2391 );2365 );
2392 try std.testing.expectFmt(2366 try std.testing.expectFmt(
2393 \\input.zon:1:2: error: expected 2 array elements; found 12367 \\input.zon:1:2: error: expected 2 array elements; found 1
2394 \\
2395 , "{f}", .{diagnostics.fmt("input.zon")});2368 , "{f}", .{diagnostics.fmt("input.zon")});
2396 }2369 }
23972370
...@@ -2408,7 +2381,6 @@ test "std.zon arrays and slices" {...@@ -2408,7 +2381,6 @@ test "std.zon arrays and slices" {
2408 );2381 );
2409 try std.testing.expectFmt(2382 try std.testing.expectFmt(
2410 \\input.zon:1:2: error: expected 3 array elements; found 02383 \\input.zon:1:2: error: expected 3 array elements; found 0
2411 \\
2412 , "{f}", .{diagnostics.fmt("input.zon")});2384 , "{f}", .{diagnostics.fmt("input.zon")});
2413 }2385 }
24142386
...@@ -2427,7 +2399,6 @@ test "std.zon arrays and slices" {...@@ -2427,7 +2399,6 @@ test "std.zon arrays and slices" {
2427 );2399 );
2428 try std.testing.expectFmt(2400 try std.testing.expectFmt(
2429 \\input.zon:1:3: error: expected type 'bool'2401 \\input.zon:1:3: error: expected type 'bool'
2430 \\
2431 , "{f}", .{diagnostics.fmt("input.zon")});2402 , "{f}", .{diagnostics.fmt("input.zon")});
2432 }2403 }
24332404
...@@ -2444,7 +2415,6 @@ test "std.zon arrays and slices" {...@@ -2444,7 +2415,6 @@ test "std.zon arrays and slices" {
2444 );2415 );
2445 try std.testing.expectFmt(2416 try std.testing.expectFmt(
2446 \\input.zon:1:3: error: expected type 'bool'2417 \\input.zon:1:3: error: expected type 'bool'
2447 \\
2448 , "{f}", .{diagnostics.fmt("input.zon")});2418 , "{f}", .{diagnostics.fmt("input.zon")});
2449 }2419 }
2450 }2420 }
...@@ -2464,7 +2434,6 @@ test "std.zon arrays and slices" {...@@ -2464,7 +2434,6 @@ test "std.zon arrays and slices" {
2464 );2434 );
2465 try std.testing.expectFmt(2435 try std.testing.expectFmt(
2466 \\input.zon:1:1: error: expected array2436 \\input.zon:1:1: error: expected array
2467 \\
2468 , "{f}", .{diagnostics.fmt("input.zon")});2437 , "{f}", .{diagnostics.fmt("input.zon")});
2469 }2438 }
24702439
...@@ -2476,7 +2445,6 @@ test "std.zon arrays and slices" {...@@ -2476,7 +2445,6 @@ test "std.zon arrays and slices" {
2476 );2445 );
2477 try std.testing.expectFmt(2446 try std.testing.expectFmt(
2478 \\input.zon:1:1: error: expected array2447 \\input.zon:1:1: error: expected array
2479 \\
2480 , "{f}", .{diagnostics.fmt("input.zon")});2448 , "{f}", .{diagnostics.fmt("input.zon")});
2481 }2449 }
2482 }2450 }
...@@ -2489,7 +2457,6 @@ test "std.zon arrays and slices" {...@@ -2489,7 +2457,6 @@ test "std.zon arrays and slices" {
2489 );2457 );
2490 try std.testing.expectFmt(2458 try std.testing.expectFmt(
2491 \\input.zon:1:3: error: pointers are not available in ZON2459 \\input.zon:1:3: error: pointers are not available in ZON
2492 \\
2493 , "{f}", .{diagnostics.fmt("input.zon")});2460 , "{f}", .{diagnostics.fmt("input.zon")});
2494 }2461 }
2495}2462}
...@@ -2543,7 +2510,6 @@ test "std.zon string literal" {...@@ -2543,7 +2510,6 @@ test "std.zon string literal" {
2543 );2510 );
2544 try std.testing.expectFmt(2511 try std.testing.expectFmt(
2545 \\input.zon:1:1: error: expected array2512 \\input.zon:1:1: error: expected array
2546 \\
2547 , "{f}", .{diagnostics.fmt("input.zon")});2513 , "{f}", .{diagnostics.fmt("input.zon")});
2548 }2514 }
25492515
...@@ -2554,7 +2520,6 @@ test "std.zon string literal" {...@@ -2554,7 +2520,6 @@ test "std.zon string literal" {
2554 );2520 );
2555 try std.testing.expectFmt(2521 try std.testing.expectFmt(
2556 \\input.zon:1:1: error: expected array2522 \\input.zon:1:1: error: expected array
2557 \\
2558 , "{f}", .{diagnostics.fmt("input.zon")});2523 , "{f}", .{diagnostics.fmt("input.zon")});
2559 }2524 }
2560 }2525 }
...@@ -2577,7 +2542,6 @@ test "std.zon string literal" {...@@ -2577,7 +2542,6 @@ test "std.zon string literal" {
2577 );2542 );
2578 try std.testing.expectFmt(2543 try std.testing.expectFmt(
2579 \\input.zon:1:1: error: expected array2544 \\input.zon:1:1: error: expected array
2580 \\
2581 , "{f}", .{diagnostics.fmt("input.zon")});2545 , "{f}", .{diagnostics.fmt("input.zon")});
2582 }2546 }
25832547
...@@ -2593,7 +2557,6 @@ test "std.zon string literal" {...@@ -2593,7 +2557,6 @@ test "std.zon string literal" {
2593 );2557 );
2594 try std.testing.expectFmt(2558 try std.testing.expectFmt(
2595 \\input.zon:1:1: error: expected array2559 \\input.zon:1:1: error: expected array
2596 \\
2597 , "{f}", .{diagnostics.fmt("input.zon")});2560 , "{f}", .{diagnostics.fmt("input.zon")});
2598 }2561 }
2599 }2562 }
...@@ -2632,7 +2595,6 @@ test "std.zon string literal" {...@@ -2632,7 +2595,6 @@ test "std.zon string literal" {
2632 );2595 );
2633 try std.testing.expectFmt(2596 try std.testing.expectFmt(
2634 \\input.zon:1:1: error: expected array2597 \\input.zon:1:1: error: expected array
2635 \\
2636 , "{f}", .{diagnostics.fmt("input.zon")});2598 , "{f}", .{diagnostics.fmt("input.zon")});
2637 }2599 }
26382600
...@@ -2643,7 +2605,6 @@ test "std.zon string literal" {...@@ -2643,7 +2605,6 @@ test "std.zon string literal" {
2643 );2605 );
2644 try std.testing.expectFmt(2606 try std.testing.expectFmt(
2645 \\input.zon:1:1: error: expected array2607 \\input.zon:1:1: error: expected array
2646 \\
2647 , "{f}", .{diagnostics.fmt("input.zon")});2608 , "{f}", .{diagnostics.fmt("input.zon")});
2648 }2609 }
2649 }2610 }
...@@ -2656,7 +2617,6 @@ test "std.zon string literal" {...@@ -2656,7 +2617,6 @@ test "std.zon string literal" {
2656 );2617 );
2657 try std.testing.expectFmt(2618 try std.testing.expectFmt(
2658 \\input.zon:1:1: error: expected string2619 \\input.zon:1:1: error: expected string
2659 \\
2660 , "{f}", .{diagnostics.fmt("input.zon")});2620 , "{f}", .{diagnostics.fmt("input.zon")});
2661 }2621 }
26622622
...@@ -2668,7 +2628,6 @@ test "std.zon string literal" {...@@ -2668,7 +2628,6 @@ test "std.zon string literal" {
2668 );2628 );
2669 try std.testing.expectFmt(2629 try std.testing.expectFmt(
2670 \\input.zon:1:3: error: expected type 'u8'2630 \\input.zon:1:3: error: expected type 'u8'
2671 \\
2672 , "{f}", .{diagnostics.fmt("input.zon")});2631 , "{f}", .{diagnostics.fmt("input.zon")});
2673 }2632 }
26742633
...@@ -2680,7 +2639,6 @@ test "std.zon string literal" {...@@ -2680,7 +2639,6 @@ test "std.zon string literal" {
2680 );2639 );
2681 try std.testing.expectFmt(2640 try std.testing.expectFmt(
2682 \\input.zon:1:3: error: invalid escape character: 'a'2641 \\input.zon:1:3: error: invalid escape character: 'a'
2683 \\
2684 , "{f}", .{diagnostics.fmt("input.zon")});2642 , "{f}", .{diagnostics.fmt("input.zon")});
2685 }2643 }
26862644
...@@ -2693,7 +2651,6 @@ test "std.zon string literal" {...@@ -2693,7 +2651,6 @@ test "std.zon string literal" {
2693 );2651 );
2694 try std.testing.expectFmt(2652 try std.testing.expectFmt(
2695 \\input.zon:1:1: error: expected array2653 \\input.zon:1:1: error: expected array
2696 \\
2697 , "{f}", .{diagnostics.fmt("input.zon")});2654 , "{f}", .{diagnostics.fmt("input.zon")});
2698 }2655 }
26992656
...@@ -2704,7 +2661,6 @@ test "std.zon string literal" {...@@ -2704,7 +2661,6 @@ test "std.zon string literal" {
2704 );2661 );
2705 try std.testing.expectFmt(2662 try std.testing.expectFmt(
2706 \\input.zon:1:1: error: expected array2663 \\input.zon:1:1: error: expected array
2707 \\
2708 , "{f}", .{diagnostics.fmt("input.zon")});2664 , "{f}", .{diagnostics.fmt("input.zon")});
2709 }2665 }
2710 }2666 }
...@@ -2723,7 +2679,6 @@ test "std.zon string literal" {...@@ -2723,7 +2679,6 @@ test "std.zon string literal" {
2723 );2679 );
2724 try std.testing.expectFmt(2680 try std.testing.expectFmt(
2725 \\input.zon:1:1: error: expected array2681 \\input.zon:1:1: error: expected array
2726 \\
2727 , "{f}", .{diagnostics.fmt("input.zon")});2682 , "{f}", .{diagnostics.fmt("input.zon")});
2728 }2683 }
27292684
...@@ -2739,7 +2694,6 @@ test "std.zon string literal" {...@@ -2739,7 +2694,6 @@ test "std.zon string literal" {
2739 );2694 );
2740 try std.testing.expectFmt(2695 try std.testing.expectFmt(
2741 \\input.zon:1:1: error: expected array2696 \\input.zon:1:1: error: expected array
2742 \\
2743 , "{f}", .{diagnostics.fmt("input.zon")});2697 , "{f}", .{diagnostics.fmt("input.zon")});
2744 }2698 }
2745 }2699 }
...@@ -2843,7 +2797,6 @@ test "std.zon enum literals" {...@@ -2843,7 +2797,6 @@ test "std.zon enum literals" {
2843 try std.testing.expectFmt(2797 try std.testing.expectFmt(
2844 \\input.zon:1:2: error: unexpected enum literal 'qux'2798 \\input.zon:1:2: error: unexpected enum literal 'qux'
2845 \\input.zon:1:2: note: supported: 'foo', 'bar', 'baz', '@"ab\nc"'2799 \\input.zon:1:2: note: supported: 'foo', 'bar', 'baz', '@"ab\nc"'
2846 \\
2847 , "{f}", .{diagnostics.fmt("input.zon")});2800 , "{f}", .{diagnostics.fmt("input.zon")});
2848 }2801 }
28492802
...@@ -2861,7 +2814,6 @@ test "std.zon enum literals" {...@@ -2861,7 +2814,6 @@ test "std.zon enum literals" {
2861 try std.testing.expectFmt(2814 try std.testing.expectFmt(
2862 \\input.zon:1:2: error: unexpected enum literal 'foobarbaz'2815 \\input.zon:1:2: error: unexpected enum literal 'foobarbaz'
2863 \\input.zon:1:2: note: supported: 'foo', 'bar', 'baz', '@"ab\nc"'2816 \\input.zon:1:2: note: supported: 'foo', 'bar', 'baz', '@"ab\nc"'
2864 \\
2865 , "{f}", .{diagnostics.fmt("input.zon")});2817 , "{f}", .{diagnostics.fmt("input.zon")});
2866 }2818 }
28672819
...@@ -2878,7 +2830,6 @@ test "std.zon enum literals" {...@@ -2878,7 +2830,6 @@ test "std.zon enum literals" {
2878 );2830 );
2879 try std.testing.expectFmt(2831 try std.testing.expectFmt(
2880 \\input.zon:1:1: error: expected enum literal2832 \\input.zon:1:1: error: expected enum literal
2881 \\
2882 , "{f}", .{diagnostics.fmt("input.zon")});2833 , "{f}", .{diagnostics.fmt("input.zon")});
2883 }2834 }
28842835
...@@ -2895,7 +2846,6 @@ test "std.zon enum literals" {...@@ -2895,7 +2846,6 @@ test "std.zon enum literals" {
2895 );2846 );
2896 try std.testing.expectFmt(2847 try std.testing.expectFmt(
2897 \\input.zon:1:2: error: identifier cannot contain null bytes2848 \\input.zon:1:2: error: identifier cannot contain null bytes
2898 \\
2899 , "{f}", .{diagnostics.fmt("input.zon")});2849 , "{f}", .{diagnostics.fmt("input.zon")});
2900 }2850 }
2901}2851}
...@@ -2936,7 +2886,6 @@ test "std.zon parse bool" {...@@ -2936,7 +2886,6 @@ test "std.zon parse bool" {
2936 \\input.zon:1:2: error: invalid expression2886 \\input.zon:1:2: error: invalid expression
2937 \\input.zon:1:2: note: ZON allows identifiers 'true', 'false', 'null', 'inf', and 'nan'2887 \\input.zon:1:2: note: ZON allows identifiers 'true', 'false', 'null', 'inf', and 'nan'
2938 \\input.zon:1:2: note: precede identifier with '.' for an enum literal2888 \\input.zon:1:2: note: precede identifier with '.' for an enum literal
2939 \\
2940 , "{f}", .{diagnostics.fmt("input.zon")});2889 , "{f}", .{diagnostics.fmt("input.zon")});
2941 }2890 }
2942 {2891 {
...@@ -2948,7 +2897,6 @@ test "std.zon parse bool" {...@@ -2948,7 +2897,6 @@ test "std.zon parse bool" {
2948 }));2897 }));
2949 try std.testing.expectFmt(2898 try std.testing.expectFmt(
2950 \\input.zon:1:1: error: expected type 'bool'2899 \\input.zon:1:1: error: expected type 'bool'
2951 \\
2952 , "{f}", .{diagnostics.fmt("input.zon")});2900 , "{f}", .{diagnostics.fmt("input.zon")});
2953 }2901 }
2954}2902}
...@@ -3093,7 +3041,6 @@ test "std.zon parse int" {...@@ -3093,7 +3041,6 @@ test "std.zon parse int" {
3093 }));3041 }));
3094 try std.testing.expectFmt(3042 try std.testing.expectFmt(
3095 \\input.zon:1:1: error: type 'i66' cannot represent value3043 \\input.zon:1:1: error: type 'i66' cannot represent value
3096 \\
3097 , "{f}", .{diagnostics.fmt("input.zon")});3044 , "{f}", .{diagnostics.fmt("input.zon")});
3098 }3045 }
3099 {3046 {
...@@ -3105,7 +3052,6 @@ test "std.zon parse int" {...@@ -3105,7 +3052,6 @@ test "std.zon parse int" {
3105 }));3052 }));
3106 try std.testing.expectFmt(3053 try std.testing.expectFmt(
3107 \\input.zon:1:1: error: type 'i66' cannot represent value3054 \\input.zon:1:1: error: type 'i66' cannot represent value
3108 \\
3109 , "{f}", .{diagnostics.fmt("input.zon")});3055 , "{f}", .{diagnostics.fmt("input.zon")});
3110 }3056 }
31113057
...@@ -3227,7 +3173,6 @@ test "std.zon parse int" {...@@ -3227,7 +3173,6 @@ test "std.zon parse int" {
3227 }));3173 }));
3228 try std.testing.expectFmt(3174 try std.testing.expectFmt(
3229 \\input.zon:1:3: error: invalid digit 'a' for decimal base3175 \\input.zon:1:3: error: invalid digit 'a' for decimal base
3230 \\
3231 , "{f}", .{diagnostics.fmt("input.zon")});3176 , "{f}", .{diagnostics.fmt("input.zon")});
3232 }3177 }
32333178
...@@ -3241,7 +3186,6 @@ test "std.zon parse int" {...@@ -3241,7 +3186,6 @@ test "std.zon parse int" {
3241 }));3186 }));
3242 try std.testing.expectFmt(3187 try std.testing.expectFmt(
3243 \\input.zon:1:1: error: expected type 'u8'3188 \\input.zon:1:1: error: expected type 'u8'
3244 \\
3245 , "{f}", .{diagnostics.fmt("input.zon")});3189 , "{f}", .{diagnostics.fmt("input.zon")});
3246 }3190 }
32473191
...@@ -3255,7 +3199,6 @@ test "std.zon parse int" {...@@ -3255,7 +3199,6 @@ test "std.zon parse int" {
3255 }));3199 }));
3256 try std.testing.expectFmt(3200 try std.testing.expectFmt(
3257 \\input.zon:1:1: error: type 'u8' cannot represent value3201 \\input.zon:1:1: error: type 'u8' cannot represent value
3258 \\
3259 , "{f}", .{diagnostics.fmt("input.zon")});3202 , "{f}", .{diagnostics.fmt("input.zon")});
3260 }3203 }
32613204
...@@ -3269,7 +3212,6 @@ test "std.zon parse int" {...@@ -3269,7 +3212,6 @@ test "std.zon parse int" {
3269 }));3212 }));
3270 try std.testing.expectFmt(3213 try std.testing.expectFmt(
3271 \\input.zon:1:1: error: type 'i8' cannot represent value3214 \\input.zon:1:1: error: type 'i8' cannot represent value
3272 \\
3273 , "{f}", .{diagnostics.fmt("input.zon")});3215 , "{f}", .{diagnostics.fmt("input.zon")});
3274 }3216 }
32753217
...@@ -3283,7 +3225,6 @@ test "std.zon parse int" {...@@ -3283,7 +3225,6 @@ test "std.zon parse int" {
3283 }));3225 }));
3284 try std.testing.expectFmt(3226 try std.testing.expectFmt(
3285 \\input.zon:1:1: error: type 'u8' cannot represent value3227 \\input.zon:1:1: error: type 'u8' cannot represent value
3286 \\
3287 , "{f}", .{diagnostics.fmt("input.zon")});3228 , "{f}", .{diagnostics.fmt("input.zon")});
3288 }3229 }
32893230
...@@ -3297,7 +3238,6 @@ test "std.zon parse int" {...@@ -3297,7 +3238,6 @@ test "std.zon parse int" {
3297 }));3238 }));
3298 try std.testing.expectFmt(3239 try std.testing.expectFmt(
3299 \\input.zon:1:1: error: type 'u8' cannot represent value3240 \\input.zon:1:1: error: type 'u8' cannot represent value
3300 \\
3301 , "{f}", .{diagnostics.fmt("input.zon")});3241 , "{f}", .{diagnostics.fmt("input.zon")});
3302 }3242 }
33033243
...@@ -3311,7 +3251,6 @@ test "std.zon parse int" {...@@ -3311,7 +3251,6 @@ test "std.zon parse int" {
3311 }));3251 }));
3312 try std.testing.expectFmt(3252 try std.testing.expectFmt(
3313 \\input.zon:1:1: error: type 'u8' cannot represent value3253 \\input.zon:1:1: error: type 'u8' cannot represent value
3314 \\
3315 , "{f}", .{diagnostics.fmt("input.zon")});3254 , "{f}", .{diagnostics.fmt("input.zon")});
3316 }3255 }
33173256
...@@ -3327,7 +3266,6 @@ test "std.zon parse int" {...@@ -3327,7 +3266,6 @@ test "std.zon parse int" {
3327 \\input.zon:1:2: error: integer literal '-0' is ambiguous3266 \\input.zon:1:2: error: integer literal '-0' is ambiguous
3328 \\input.zon:1:2: note: use '0' for an integer zero3267 \\input.zon:1:2: note: use '0' for an integer zero
3329 \\input.zon:1:2: note: use '-0.0' for a floating-point signed zero3268 \\input.zon:1:2: note: use '-0.0' for a floating-point signed zero
3330 \\
3331 , "{f}", .{diagnostics.fmt("input.zon")});3269 , "{f}", .{diagnostics.fmt("input.zon")});
3332 }3270 }
33333271
...@@ -3343,7 +3281,6 @@ test "std.zon parse int" {...@@ -3343,7 +3281,6 @@ test "std.zon parse int" {
3343 \\input.zon:1:2: error: integer literal '-0' is ambiguous3281 \\input.zon:1:2: error: integer literal '-0' is ambiguous
3344 \\input.zon:1:2: note: use '0' for an integer zero3282 \\input.zon:1:2: note: use '0' for an integer zero
3345 \\input.zon:1:2: note: use '-0.0' for a floating-point signed zero3283 \\input.zon:1:2: note: use '-0.0' for a floating-point signed zero
3346 \\
3347 , "{f}", .{diagnostics.fmt("input.zon")});3284 , "{f}", .{diagnostics.fmt("input.zon")});
3348 }3285 }
33493286
...@@ -3373,7 +3310,6 @@ test "std.zon parse int" {...@@ -3373,7 +3310,6 @@ test "std.zon parse int" {
3373 }));3310 }));
3374 try std.testing.expectFmt(3311 try std.testing.expectFmt(
3375 \\input.zon:1:1: error: expected number or 'inf' after '-'3312 \\input.zon:1:1: error: expected number or 'inf' after '-'
3376 \\
3377 , "{f}", .{diagnostics.fmt("input.zon")});3313 , "{f}", .{diagnostics.fmt("input.zon")});
3378 }3314 }
33793315
...@@ -3389,7 +3325,6 @@ test "std.zon parse int" {...@@ -3389,7 +3325,6 @@ test "std.zon parse int" {
3389 );3325 );
3390 try std.testing.expectFmt(3326 try std.testing.expectFmt(
3391 \\input.zon:1:1: error: expected number or 'inf' after '-'3327 \\input.zon:1:1: error: expected number or 'inf' after '-'
3392 \\
3393 , "{f}", .{diagnostics.fmt("input.zon")});3328 , "{f}", .{diagnostics.fmt("input.zon")});
3394 }3329 }
33953330
...@@ -3403,7 +3338,6 @@ test "std.zon parse int" {...@@ -3403,7 +3338,6 @@ test "std.zon parse int" {
3403 }));3338 }));
3404 try std.testing.expectFmt(3339 try std.testing.expectFmt(
3405 \\input.zon:1:3: error: invalid digit 'g' for hex base3340 \\input.zon:1:3: error: invalid digit 'g' for hex base
3406 \\
3407 , "{f}", .{diagnostics.fmt("input.zon")});3341 , "{f}", .{diagnostics.fmt("input.zon")});
3408 }3342 }
34093343
...@@ -3418,7 +3352,6 @@ test "std.zon parse int" {...@@ -3418,7 +3352,6 @@ test "std.zon parse int" {
3418 try std.testing.expectFmt(3352 try std.testing.expectFmt(
3419 \\input.zon:1:1: error: number '0123' has leading zero3353 \\input.zon:1:1: error: number '0123' has leading zero
3420 \\input.zon:1:1: note: use '0o' prefix for octal literals3354 \\input.zon:1:1: note: use '0o' prefix for octal literals
3421 \\
3422 , "{f}", .{diagnostics.fmt("input.zon")});3355 , "{f}", .{diagnostics.fmt("input.zon")});
3423 }3356 }
3424}3357}
...@@ -3439,7 +3372,6 @@ test "std.zon negative char" {...@@ -3439,7 +3372,6 @@ test "std.zon negative char" {
3439 }));3372 }));
3440 try std.testing.expectFmt(3373 try std.testing.expectFmt(
3441 \\input.zon:1:1: error: expected number or 'inf' after '-'3374 \\input.zon:1:1: error: expected number or 'inf' after '-'
3442 \\
3443 , "{f}", .{diagnostics.fmt("input.zon")});3375 , "{f}", .{diagnostics.fmt("input.zon")});
3444 }3376 }
3445 {3377 {
...@@ -3451,7 +3383,6 @@ test "std.zon negative char" {...@@ -3451,7 +3383,6 @@ test "std.zon negative char" {
3451 }));3383 }));
3452 try std.testing.expectFmt(3384 try std.testing.expectFmt(
3453 \\input.zon:1:1: error: expected number or 'inf' after '-'3385 \\input.zon:1:1: error: expected number or 'inf' after '-'
3454 \\
3455 , "{f}", .{diagnostics.fmt("input.zon")});3386 , "{f}", .{diagnostics.fmt("input.zon")});
3456 }3387 }
3457}3388}
...@@ -3639,7 +3570,6 @@ test "std.zon parse float" {...@@ -3639,7 +3570,6 @@ test "std.zon parse float" {
3639 }));3570 }));
3640 try std.testing.expectFmt(3571 try std.testing.expectFmt(
3641 \\input.zon:1:1: error: expected number or 'inf' after '-'3572 \\input.zon:1:1: error: expected number or 'inf' after '-'
3642 \\
3643 , "{f}", .{diagnostics.fmt("input.zon")});3573 , "{f}", .{diagnostics.fmt("input.zon")});
3644 }3574 }
36453575
...@@ -3653,7 +3583,6 @@ test "std.zon parse float" {...@@ -3653,7 +3583,6 @@ test "std.zon parse float" {
3653 }));3583 }));
3654 try std.testing.expectFmt(3584 try std.testing.expectFmt(
3655 \\input.zon:1:1: error: expected type 'i8'3585 \\input.zon:1:1: error: expected type 'i8'
3656 \\
3657 , "{f}", .{diagnostics.fmt("input.zon")});3586 , "{f}", .{diagnostics.fmt("input.zon")});
3658 }3587 }
36593588
...@@ -3667,7 +3596,6 @@ test "std.zon parse float" {...@@ -3667,7 +3596,6 @@ test "std.zon parse float" {
3667 }));3596 }));
3668 try std.testing.expectFmt(3597 try std.testing.expectFmt(
3669 \\input.zon:1:1: error: expected type 'i8'3598 \\input.zon:1:1: error: expected type 'i8'
3670 \\
3671 , "{f}", .{diagnostics.fmt("input.zon")});3599 , "{f}", .{diagnostics.fmt("input.zon")});
3672 }3600 }
36733601
...@@ -3681,7 +3609,6 @@ test "std.zon parse float" {...@@ -3681,7 +3609,6 @@ test "std.zon parse float" {
3681 }));3609 }));
3682 try std.testing.expectFmt(3610 try std.testing.expectFmt(
3683 \\input.zon:1:1: error: expected type 'i8'3611 \\input.zon:1:1: error: expected type 'i8'
3684 \\
3685 , "{f}", .{diagnostics.fmt("input.zon")});3612 , "{f}", .{diagnostics.fmt("input.zon")});
3686 }3613 }
36873614
...@@ -3695,7 +3622,6 @@ test "std.zon parse float" {...@@ -3695,7 +3622,6 @@ test "std.zon parse float" {
3695 }));3622 }));
3696 try std.testing.expectFmt(3623 try std.testing.expectFmt(
3697 \\input.zon:1:1: error: expected type 'i8'3624 \\input.zon:1:1: error: expected type 'i8'
3698 \\
3699 , "{f}", .{diagnostics.fmt("input.zon")});3625 , "{f}", .{diagnostics.fmt("input.zon")});
3700 }3626 }
37013627
...@@ -3711,7 +3637,6 @@ test "std.zon parse float" {...@@ -3711,7 +3637,6 @@ test "std.zon parse float" {
3711 \\input.zon:1:1: error: invalid expression3637 \\input.zon:1:1: error: invalid expression
3712 \\input.zon:1:1: note: ZON allows identifiers 'true', 'false', 'null', 'inf', and 'nan'3638 \\input.zon:1:1: note: ZON allows identifiers 'true', 'false', 'null', 'inf', and 'nan'
3713 \\input.zon:1:1: note: precede identifier with '.' for an enum literal3639 \\input.zon:1:1: note: precede identifier with '.' for an enum literal
3714 \\
3715 , "{f}", .{diagnostics.fmt("input.zon")});3640 , "{f}", .{diagnostics.fmt("input.zon")});
3716 }3641 }
37173642
...@@ -3724,7 +3649,6 @@ test "std.zon parse float" {...@@ -3724,7 +3649,6 @@ test "std.zon parse float" {
3724 }));3649 }));
3725 try std.testing.expectFmt(3650 try std.testing.expectFmt(
3726 \\input.zon:1:1: error: expected number or 'inf' after '-'3651 \\input.zon:1:1: error: expected number or 'inf' after '-'
3727 \\
3728 , "{f}", .{diagnostics.fmt("input.zon")});3652 , "{f}", .{diagnostics.fmt("input.zon")});
3729 }3653 }
37303654
...@@ -3741,7 +3665,6 @@ test "std.zon parse float" {...@@ -3741,7 +3665,6 @@ test "std.zon parse float" {
3741 );3665 );
3742 try std.testing.expectFmt(3666 try std.testing.expectFmt(
3743 \\input.zon:1:1: error: expected type 'f32'3667 \\input.zon:1:1: error: expected type 'f32'
3744 \\
3745 , "{f}", .{diagnostics.fmt("input.zon")});3668 , "{f}", .{diagnostics.fmt("input.zon")});
3746 }3669 }
3747}3670}
...@@ -3983,7 +3906,6 @@ test "std.zon vector" {...@@ -3983,7 +3906,6 @@ test "std.zon vector" {
3983 );3906 );
3984 try std.testing.expectFmt(3907 try std.testing.expectFmt(
3985 \\input.zon:1:2: error: expected 2 array elements; found 13908 \\input.zon:1:2: error: expected 2 array elements; found 1
3986 \\
3987 , "{f}", .{diagnostics.fmt("input.zon")});3909 , "{f}", .{diagnostics.fmt("input.zon")});
3988 }3910 }
39893911
...@@ -4000,7 +3922,6 @@ test "std.zon vector" {...@@ -4000,7 +3922,6 @@ test "std.zon vector" {
4000 );3922 );
4001 try std.testing.expectFmt(3923 try std.testing.expectFmt(
4002 \\input.zon:1:13: error: index 2 outside of array of length 23924 \\input.zon:1:13: error: index 2 outside of array of length 2
4003 \\
4004 , "{f}", .{diagnostics.fmt("input.zon")});3925 , "{f}", .{diagnostics.fmt("input.zon")});
4005 }3926 }
40063927
...@@ -4017,7 +3938,6 @@ test "std.zon vector" {...@@ -4017,7 +3938,6 @@ test "std.zon vector" {
4017 );3938 );
4018 try std.testing.expectFmt(3939 try std.testing.expectFmt(
4019 \\input.zon:1:8: error: expected type 'f32'3940 \\input.zon:1:8: error: expected type 'f32'
4020 \\
4021 , "{f}", .{diagnostics.fmt("input.zon")});3941 , "{f}", .{diagnostics.fmt("input.zon")});
4022 }3942 }
40233943
...@@ -4034,7 +3954,6 @@ test "std.zon vector" {...@@ -4034,7 +3954,6 @@ test "std.zon vector" {
4034 );3954 );
4035 try std.testing.expectFmt(3955 try std.testing.expectFmt(
4036 \\input.zon:1:1: error: expected type '@Vector(3, u8)'3956 \\input.zon:1:1: error: expected type '@Vector(3, u8)'
4037 \\
4038 , "{f}", .{diagnostics.fmt("input.zon")});3957 , "{f}", .{diagnostics.fmt("input.zon")});
4039 }3958 }
40403959
...@@ -4051,7 +3970,6 @@ test "std.zon vector" {...@@ -4051,7 +3970,6 @@ test "std.zon vector" {
4051 );3970 );
4052 try std.testing.expectFmt(3971 try std.testing.expectFmt(
4053 \\input.zon:1:6: error: expected type 'u8'3972 \\input.zon:1:6: error: expected type 'u8'
4054 \\
4055 , "{f}", .{diagnostics.fmt("input.zon")});3973 , "{f}", .{diagnostics.fmt("input.zon")});
4056 }3974 }
4057}3975}
...@@ -4245,7 +4163,6 @@ test "std.zon add pointers" {...@@ -4245,7 +4163,6 @@ test "std.zon add pointers" {
4245 );4163 );
4246 try std.testing.expectFmt(4164 try std.testing.expectFmt(
4247 \\input.zon:1:1: error: expected type '?u8'4165 \\input.zon:1:1: error: expected type '?u8'
4248 \\
4249 , "{f}", .{diagnostics.fmt("input.zon")});4166 , "{f}", .{diagnostics.fmt("input.zon")});
4250 }4167 }
42514168
...@@ -4261,7 +4178,6 @@ test "std.zon add pointers" {...@@ -4261,7 +4178,6 @@ test "std.zon add pointers" {
4261 );4178 );
4262 try std.testing.expectFmt(4179 try std.testing.expectFmt(
4263 \\input.zon:1:1: error: expected type '?f32'4180 \\input.zon:1:1: error: expected type '?f32'
4264 \\
4265 , "{f}", .{diagnostics.fmt("input.zon")});4181 , "{f}", .{diagnostics.fmt("input.zon")});
4266 }4182 }
42674183
...@@ -4277,7 +4193,6 @@ test "std.zon add pointers" {...@@ -4277,7 +4193,6 @@ test "std.zon add pointers" {
4277 );4193 );
4278 try std.testing.expectFmt(4194 try std.testing.expectFmt(
4279 \\input.zon:1:1: error: expected type '?@Vector(3, u8)'4195 \\input.zon:1:1: error: expected type '?@Vector(3, u8)'
4280 \\
4281 , "{f}", .{diagnostics.fmt("input.zon")});4196 , "{f}", .{diagnostics.fmt("input.zon")});
4282 }4197 }
42834198
...@@ -4293,7 +4208,6 @@ test "std.zon add pointers" {...@@ -4293,7 +4208,6 @@ test "std.zon add pointers" {
4293 );4208 );
4294 try std.testing.expectFmt(4209 try std.testing.expectFmt(
4295 \\input.zon:1:1: error: expected type '?bool'4210 \\input.zon:1:1: error: expected type '?bool'
4296 \\
4297 , "{f}", .{diagnostics.fmt("input.zon")});4211 , "{f}", .{diagnostics.fmt("input.zon")});
4298 }4212 }
42994213
...@@ -4309,7 +4223,6 @@ test "std.zon add pointers" {...@@ -4309,7 +4223,6 @@ test "std.zon add pointers" {
4309 );4223 );
4310 try std.testing.expectFmt(4224 try std.testing.expectFmt(
4311 \\input.zon:1:1: error: expected optional struct4225 \\input.zon:1:1: error: expected optional struct
4312 \\
4313 , "{f}", .{diagnostics.fmt("input.zon")});4226 , "{f}", .{diagnostics.fmt("input.zon")});
4314 }4227 }
43154228
...@@ -4325,7 +4238,6 @@ test "std.zon add pointers" {...@@ -4325,7 +4238,6 @@ test "std.zon add pointers" {
4325 );4238 );
4326 try std.testing.expectFmt(4239 try std.testing.expectFmt(
4327 \\input.zon:1:1: error: expected optional tuple4240 \\input.zon:1:1: error: expected optional tuple
4328 \\
4329 , "{f}", .{diagnostics.fmt("input.zon")});4241 , "{f}", .{diagnostics.fmt("input.zon")});
4330 }4242 }
43314243
...@@ -4341,7 +4253,6 @@ test "std.zon add pointers" {...@@ -4341,7 +4253,6 @@ test "std.zon add pointers" {
4341 );4253 );
4342 try std.testing.expectFmt(4254 try std.testing.expectFmt(
4343 \\input.zon:1:1: error: expected optional union4255 \\input.zon:1:1: error: expected optional union
4344 \\
4345 , "{f}", .{diagnostics.fmt("input.zon")});4256 , "{f}", .{diagnostics.fmt("input.zon")});
4346 }4257 }
43474258
...@@ -4357,7 +4268,6 @@ test "std.zon add pointers" {...@@ -4357,7 +4268,6 @@ test "std.zon add pointers" {
4357 );4268 );
4358 try std.testing.expectFmt(4269 try std.testing.expectFmt(
4359 \\input.zon:1:1: error: expected optional array4270 \\input.zon:1:1: error: expected optional array
4360 \\
4361 , "{f}", .{diagnostics.fmt("input.zon")});4271 , "{f}", .{diagnostics.fmt("input.zon")});
4362 }4272 }
43634273
...@@ -4373,7 +4283,6 @@ test "std.zon add pointers" {...@@ -4373,7 +4283,6 @@ test "std.zon add pointers" {
4373 );4283 );
4374 try std.testing.expectFmt(4284 try std.testing.expectFmt(
4375 \\input.zon:1:1: error: expected optional array4285 \\input.zon:1:1: error: expected optional array
4376 \\
4377 , "{f}", .{diagnostics.fmt("input.zon")});4286 , "{f}", .{diagnostics.fmt("input.zon")});
4378 }4287 }
43794288
...@@ -4389,7 +4298,6 @@ test "std.zon add pointers" {...@@ -4389,7 +4298,6 @@ test "std.zon add pointers" {
4389 );4298 );
4390 try std.testing.expectFmt(4299 try std.testing.expectFmt(
4391 \\input.zon:1:1: error: expected optional array4300 \\input.zon:1:1: error: expected optional array
4392 \\
4393 , "{f}", .{diagnostics.fmt("input.zon")});4301 , "{f}", .{diagnostics.fmt("input.zon")});
4394 }4302 }
43954303
...@@ -4405,7 +4313,6 @@ test "std.zon add pointers" {...@@ -4405,7 +4313,6 @@ test "std.zon add pointers" {
4405 );4313 );
4406 try std.testing.expectFmt(4314 try std.testing.expectFmt(
4407 \\input.zon:1:1: error: expected optional array4315 \\input.zon:1:1: error: expected optional array
4408 \\
4409 , "{f}", .{diagnostics.fmt("input.zon")});4316 , "{f}", .{diagnostics.fmt("input.zon")});
4410 }4317 }
44114318
...@@ -4421,7 +4328,6 @@ test "std.zon add pointers" {...@@ -4421,7 +4328,6 @@ test "std.zon add pointers" {
4421 );4328 );
4422 try std.testing.expectFmt(4329 try std.testing.expectFmt(
4423 \\input.zon:1:1: error: expected optional string4330 \\input.zon:1:1: error: expected optional string
4424 \\
4425 , "{f}", .{diagnostics.fmt("input.zon")});4331 , "{f}", .{diagnostics.fmt("input.zon")});
4426 }4332 }
44274333
...@@ -4437,7 +4343,6 @@ test "std.zon add pointers" {...@@ -4437,7 +4343,6 @@ test "std.zon add pointers" {
4437 );4343 );
4438 try std.testing.expectFmt(4344 try std.testing.expectFmt(
4439 \\input.zon:1:1: error: expected optional enum literal4345 \\input.zon:1:1: error: expected optional enum literal
4440 \\
4441 , "{f}", .{diagnostics.fmt("input.zon")});4346 , "{f}", .{diagnostics.fmt("input.zon")});
4442 }4347 }
4443}4348}
...@@ -4698,7 +4603,6 @@ test "std.zon update optionals" {...@@ -4698,7 +4603,6 @@ test "std.zon update optionals" {
4698 }));4603 }));
4699 try std.testing.expectFmt(4604 try std.testing.expectFmt(
4700 \\input.zon:1:12: error: missing required field qux4605 \\input.zon:1:12: error: missing required field qux
4701 \\
4702 , "{f}", .{diagnostics.fmt("input.zon")});4606 , "{f}", .{diagnostics.fmt("input.zon")});
4703 }4607 }
47044608
...@@ -4826,7 +4730,6 @@ test "std.zon update unions" {...@@ -4826,7 +4730,6 @@ test "std.zon update unions" {
4826 }));4730 }));
4827 try std.testing.expectFmt(4731 try std.testing.expectFmt(
4828 \\input.zon:1:12: error: missing required field qux4732 \\input.zon:1:12: error: missing required field qux
4829 \\
4830 , "{f}", .{diagnostics.fmt("input.zon")});4733 , "{f}", .{diagnostics.fmt("input.zon")});
4831 }4734 }
48324735