| ... | @@ -3809,18 +3809,7 @@ fn semaDecl(mod: *Module, decl_index: Decl.Index) !bool { | ... | @@ -3809,18 +3809,7 @@ fn semaDecl(mod: *Module, decl_index: Decl.Index) !bool { |
| 3809 | }; | 3809 | }; |
| 3810 | defer sema.deinit(); | 3810 | defer sema.deinit(); |
| 3811 | | 3811 | |
| 3812 | if (mod.declIsRoot(decl_index)) { | 3812 | assert(!mod.declIsRoot(decl_index)); |
| 3813 | const main_struct_inst = Zir.main_struct_inst; | | |
| 3814 | const struct_type = decl.getOwnedStruct(mod).?; | | |
| 3815 | assert(struct_type.zir_index == main_struct_inst); | | |
| 3816 | if (true) @panic("TODO"); | | |
| 3817 | // why did the code used to have this? I don't see how struct_type could have | | |
| 3818 | // been created already without the analyzeStructDecl logic already called on it. | | |
| 3819 | //try sema.analyzeStructDecl(decl, main_struct_inst, struct_type); | | |
| 3820 | decl.analysis = .complete; | | |
| 3821 | decl.generation = mod.generation; | | |
| 3822 | return false; | | |
| 3823 | } | | |
| 3824 | | 3813 | |
| 3825 | var block_scope: Sema.Block = .{ | 3814 | var block_scope: Sema.Block = .{ |
| 3826 | .parent = null, | 3815 | .parent = null, |