| ... | @@ -5248,11 +5248,6 @@ pub fn populateTestFunctions( | ... | @@ -5248,11 +5248,6 @@ pub fn populateTestFunctions( |
| 5248 | const test_fn_vals = try gpa.alloc(InternPool.Index, mod.test_functions.count()); | 5248 | const test_fn_vals = try gpa.alloc(InternPool.Index, mod.test_functions.count()); |
| 5249 | defer gpa.free(test_fn_vals); | 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 | for (test_fn_vals, mod.test_functions.keys()) |*test_fn_val, test_decl_index| { | 5251 | for (test_fn_vals, mod.test_functions.keys()) |*test_fn_val, test_decl_index| { |
| 5257 | const test_decl = mod.declPtr(test_decl_index); | 5252 | const test_decl = mod.declPtr(test_decl_index); |
| 5258 | // TODO: write something like getCoercedInts to avoid needing to dupe | 5253 | // TODO: write something like getCoercedInts to avoid needing to dupe |
| ... | @@ -5272,8 +5267,6 @@ pub fn populateTestFunctions( | ... | @@ -5272,8 +5267,6 @@ pub fn populateTestFunctions( |
| 5272 | }); | 5267 | }); |
| 5273 | break :n test_name_decl_index; | 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 | try mod.linkerUpdateDecl(test_name_decl_index); | 5270 | try mod.linkerUpdateDecl(test_name_decl_index); |
| 5278 | | 5271 | |
| 5279 | const test_fn_fields = .{ | 5272 | const test_fn_fields = .{ |