| ... | ... | @@ -4111,6 +4111,7 @@ fn validateStructInit( |
| 4111 | 4111 | .{fqn}, |
| 4112 | 4112 | ); |
| 4113 | 4113 | } |
| 4114 | root_msg = null; |
| 4114 | 4115 | return sema.failWithOwnedErrorMsg(msg); |
| 4115 | 4116 | } |
| 4116 | 4117 | |
| ... | ... | @@ -4230,7 +4231,6 @@ fn validateStructInit( |
| 4230 | 4231 | } |
| 4231 | 4232 | |
| 4232 | 4233 | if (root_msg) |msg| { |
| 4233 | | root_msg = null; |
| 4234 | 4234 | if (struct_ty.castTag(.@"struct")) |struct_obj| { |
| 4235 | 4235 | const fqn = try struct_obj.data.getFullyQualifiedName(sema.mod); |
| 4236 | 4236 | defer gpa.free(fqn); |
| ... | ... | @@ -4241,6 +4241,7 @@ fn validateStructInit( |
| 4241 | 4241 | .{fqn}, |
| 4242 | 4242 | ); |
| 4243 | 4243 | } |
| 4244 | root_msg = null; |
| 4244 | 4245 | return sema.failWithOwnedErrorMsg(msg); |
| 4245 | 4246 | } |
| 4246 | 4247 | |
| ... | ... | @@ -17098,7 +17099,6 @@ fn finishStructInit( |
| 17098 | 17099 | } |
| 17099 | 17100 | |
| 17100 | 17101 | if (root_msg) |msg| { |
| 17101 | | root_msg = null; |
| 17102 | 17102 | if (struct_ty.castTag(.@"struct")) |struct_obj| { |
| 17103 | 17103 | const fqn = try struct_obj.data.getFullyQualifiedName(sema.mod); |
| 17104 | 17104 | defer gpa.free(fqn); |
| ... | ... | @@ -17109,6 +17109,7 @@ fn finishStructInit( |
| 17109 | 17109 | .{fqn}, |
| 17110 | 17110 | ); |
| 17111 | 17111 | } |
| 17112 | root_msg = null; |
| 17112 | 17113 | return sema.failWithOwnedErrorMsg(msg); |
| 17113 | 17114 | } |
| 17114 | 17115 | |
| ... | ... | @@ -27225,8 +27226,8 @@ fn coerceTupleToStruct( |
| 27225 | 27226 | } |
| 27226 | 27227 | |
| 27227 | 27228 | if (root_msg) |msg| { |
| 27228 | | root_msg = null; |
| 27229 | 27229 | try sema.addDeclaredHereNote(msg, struct_ty); |
| 27230 | root_msg = null; |
| 27230 | 27231 | return sema.failWithOwnedErrorMsg(msg); |
| 27231 | 27232 | } |
| 27232 | 27233 | |
| ... | ... | @@ -27331,8 +27332,8 @@ fn coerceTupleToTuple( |
| 27331 | 27332 | } |
| 27332 | 27333 | |
| 27333 | 27334 | if (root_msg) |msg| { |
| 27334 | | root_msg = null; |
| 27335 | 27335 | try sema.addDeclaredHereNote(msg, tuple_ty); |
| 27336 | root_msg = null; |
| 27336 | 27337 | return sema.failWithOwnedErrorMsg(msg); |
| 27337 | 27338 | } |
| 27338 | 27339 | |