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 {...@@ -74,7 +74,7 @@ comptime {
74// target=native74// target=native
75//75//
76// :2:5: error: tuple cannot have non-numeric field 'foo'76// :2:5: error: tuple cannot have non-numeric field 'foo'
77// :16:5: error: tuple field 3 exceeds tuple field count77// :16:5: error: tuple field name '3' does not match field index 0
78// :30:5: error: comptime field without default initialization value78// :30:5: error: comptime field without default initialization value
79// :44:5: error: extern struct fields cannot be marked comptime79// :44:5: error: extern struct fields cannot be marked comptime
80// :58:5: error: alignment in a packed struct field must be set to 080// :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 {...@@ -30,6 +30,6 @@ export fn entry() void {
30// backend=stage230// backend=stage2
31// target=native31// target=native
32//32//
33// :13:16: error: enum field(s) missing in union33// :13:16: error: enum fields missing in union
34// :1:13: note: field 'arst' missing, declared here34// :1:13: note: field 'arst' missing, declared here
35// :1:13: note: enum declared here35// :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 {...@@ -26,7 +26,7 @@ export fn entry() void {
26// backend=stage226// backend=stage2
27// target=native27// target=native
28//28//
29// :12:16: error: enum field(s) missing in union29// :12:16: error: enum fields missing in union
30// :1:13: note: field 'signed' missing, declared here30// :1:13: note: field 'signed' missing, declared here
31// :1:13: note: field 'unsigned' missing, declared here31// :1:13: note: field 'unsigned' missing, declared here
32// :1:13: note: enum declared here32// :1:13: note: enum declared here