commit 031d109310fe1f7e68314069ddf5d0d1dd342098 (tree)
parent da2006a38c63ac84aa9a075193bd72cf2d1716a2
Author: Matthew Lugg <mlugg@mlugg.co.uk>
Date: Sun, 8 Feb 2026 14:39:43 +0000
Sema: small error message fix
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/src/Sema/type_resolution.zig b/src/Sema/type_resolution.zig
@@ -454,7 +454,6 @@ fn resolvePackedStructLayout(
const msg = try sema.errMsg(field_ty_src, "packed structs cannot contain fields of type '{f}'", .{field_ty.fmt(pt)});
errdefer msg.destroy(gpa);
try sema.explainWhyTypeIsUnpackable(msg, field_ty_src, reason);
- try sema.addDeclaredHereNote(msg, field_ty);
break :msg msg;
});
switch (field_ty.classify(zcu)) {