| ... | ... | @@ -5248,11 +5248,6 @@ pub fn populateTestFunctions( |
| 5248 | 5248 | const test_fn_vals = try gpa.alloc(InternPool.Index, mod.test_functions.count()); |
| 5249 | 5249 | defer gpa.free(test_fn_vals); |
| 5250 | 5250 | |
| 5251 | | // Add a dependency on each test name and function pointer. |
| 5252 | | var array_decl_dependencies = std.ArrayListUnmanaged(Decl.Index){}; |
| 5253 | | defer array_decl_dependencies.deinit(gpa); |
| 5254 | | try array_decl_dependencies.ensureUnusedCapacity(gpa, test_fn_vals.len * 2); |
| 5255 | | |
| 5256 | 5251 | for (test_fn_vals, mod.test_functions.keys()) |*test_fn_val, test_decl_index| { |
| 5257 | 5252 | const test_decl = mod.declPtr(test_decl_index); |
| 5258 | 5253 | // TODO: write something like getCoercedInts to avoid needing to dupe |
| ... | ... | @@ -5272,8 +5267,6 @@ pub fn populateTestFunctions( |
| 5272 | 5267 | }); |
| 5273 | 5268 | break :n test_name_decl_index; |
| 5274 | 5269 | }; |
| 5275 | | array_decl_dependencies.appendAssumeCapacity(test_decl_index); |
| 5276 | | array_decl_dependencies.appendAssumeCapacity(test_name_decl_index); |
| 5277 | 5270 | try mod.linkerUpdateDecl(test_name_decl_index); |
| 5278 | 5271 | |
| 5279 | 5272 | const test_fn_fields = .{ |