| ... | @@ -3378,7 +3378,6 @@ fn recreateStructType( | ... | @@ -3378,7 +3378,6 @@ fn recreateStructType( |
| 3378 | } else 0; | 3378 | } else 0; |
| 3379 | | 3379 | |
| 3380 | if (captures_len != key.captures.owned.len) return error.AnalysisFail; | 3380 | if (captures_len != key.captures.owned.len) return error.AnalysisFail; |
| 3381 | if (fields_len != struct_obj.field_types.len) return error.AnalysisFail; | | |
| 3382 | | 3381 | |
| 3383 | // The old type will be unused, so drop its dependency information. | 3382 | // The old type will be unused, so drop its dependency information. |
| 3384 | ip.removeDependenciesForDepender(gpa, AnalUnit.wrap(.{ .cau = struct_obj.cau.unwrap().? })); | 3383 | ip.removeDependenciesForDepender(gpa, AnalUnit.wrap(.{ .cau = struct_obj.cau.unwrap().? })); |
| ... | @@ -3466,7 +3465,6 @@ fn recreateUnionType( | ... | @@ -3466,7 +3465,6 @@ fn recreateUnionType( |
| 3466 | } else 0; | 3465 | } else 0; |
| 3467 | | 3466 | |
| 3468 | if (captures_len != key.captures.owned.len) return error.AnalysisFail; | 3467 | if (captures_len != key.captures.owned.len) return error.AnalysisFail; |
| 3469 | if (fields_len != union_obj.field_types.len) return error.AnalysisFail; | | |
| 3470 | | 3468 | |
| 3471 | // The old type will be unused, so drop its dependency information. | 3469 | // The old type will be unused, so drop its dependency information. |
| 3472 | ip.removeDependenciesForDepender(gpa, AnalUnit.wrap(.{ .cau = union_obj.cau })); | 3470 | ip.removeDependenciesForDepender(gpa, AnalUnit.wrap(.{ .cau = union_obj.cau })); |
| ... | @@ -3577,7 +3575,6 @@ fn recreateEnumType( | ... | @@ -3577,7 +3575,6 @@ fn recreateEnumType( |
| 3577 | } else 0; | 3575 | } else 0; |
| 3578 | | 3576 | |
| 3579 | if (captures_len != key.captures.owned.len) return error.AnalysisFail; | 3577 | if (captures_len != key.captures.owned.len) return error.AnalysisFail; |
| 3580 | if (fields_len != enum_obj.names.len) return error.AnalysisFail; | | |
| 3581 | | 3578 | |
| 3582 | extra_index += captures_len; | 3579 | extra_index += captures_len; |
| 3583 | extra_index += decls_len; | 3580 | extra_index += decls_len; |