| ... | @@ -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)) { |