authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-03-05 09:45:58+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-03-06 21:26:38+00:00
loge1d8187028ec6df7fbf420d3e4b56da8bf3dcf0a
tree9015a77d9af47609af89a59e1a8b6a853c598dd8
parente043fe474ffe07d1503c6cb70e01983b8d07a1ba
signaturelock-open Commit is signed but in an unrecognized format.

cases: correct after #18816

I changed an error messages and fixed a minor bug while implementing this proposal, which led to a few compile error cases failing.

3 files changed, 3 insertions(+), 3 deletions(-)

test/cases/compile_errors/reify_struct.zig+1-1
......@@ -74,7 +74,7 @@ comptime {
7474// target=native
7575//
7676// :2:5: error: tuple cannot have non-numeric field 'foo'
77// :16:5: error: tuple field 3 exceeds tuple field count
77// :16:5: error: tuple field name '3' does not match field index 0
7878// :30:5: error: comptime field without default initialization value
7979// :44:5: error: extern struct fields cannot be marked comptime
8080// :58:5: error: alignment in a packed struct field must be set to 0
test/cases/compile_errors/reify_type_for_tagged_union_with_extra_enum_field.zig+1-1
......@@ -30,6 +30,6 @@ export fn entry() void {
3030// backend=stage2
3131// target=native
3232//
33// :13:16: error: enum field(s) missing in union
33// :13:16: error: enum fields missing in union
3434// :1:13: note: field 'arst' missing, declared here
3535// :1:13: note: enum declared here
test/cases/compile_errors/reify_type_for_tagged_union_with_no_union_fields.zig+1-1
......@@ -26,7 +26,7 @@ export fn entry() void {
2626// backend=stage2
2727// target=native
2828//
29// :12:16: error: enum field(s) missing in union
29// :12:16: error: enum fields missing in union
3030// :1:13: note: field 'signed' missing, declared here
3131// :1:13: note: field 'unsigned' missing, declared here
3232// :1:13: note: enum declared here