authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-02-08 14:39:43+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-10 10:26:10+00:00
log031d109310fe1f7e68314069ddf5d0d1dd342098
tree52e721213a7d48cc33d98e3fafee33044eb15067
parentda2006a38c63ac84aa9a075193bd72cf2d1716a2
signature Commit is signed but in an unrecognized format.

Sema: small error message fix


1 files changed, 0 insertions(+), 1 deletions(-)

src/Sema/type_resolution.zig-1
...@@ -454,7 +454,6 @@ fn resolvePackedStructLayout(...@@ -454,7 +454,6 @@ fn resolvePackedStructLayout(
454 const msg = try sema.errMsg(field_ty_src, "packed structs cannot contain fields of type '{f}'", .{field_ty.fmt(pt)});454 const msg = try sema.errMsg(field_ty_src, "packed structs cannot contain fields of type '{f}'", .{field_ty.fmt(pt)});
455 errdefer msg.destroy(gpa);455 errdefer msg.destroy(gpa);
456 try sema.explainWhyTypeIsUnpackable(msg, field_ty_src, reason);456 try sema.explainWhyTypeIsUnpackable(msg, field_ty_src, reason);
457 try sema.addDeclaredHereNote(msg, field_ty);
458 break :msg msg;457 break :msg msg;
459 });458 });
460 switch (field_ty.classify(zcu)) {459 switch (field_ty.classify(zcu)) {