diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-09 13:38:42 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-09 13:38:42 -0800 |
| commit | 54bbc73f8502fe073d385361ddb34a43d12eec39 (patch) | |
| tree | 6eb554a4639f2c05bdfa5fc94553edc7f5df1650 /src/Module.zig | |
| parent | d3cf911a803912a5aabe7a8d130c8b6468b95ff1 (diff) | |
| parent | 318e9cdaaae2f01c1a6e5db9cf66fe875821787e (diff) | |
| download | zig-54bbc73f8502fe073d385361ddb34a43d12eec39.tar.gz zig-54bbc73f8502fe073d385361ddb34a43d12eec39.zip | |
Merge pull request #18712 from Vexu/std.options
std: make options a struct instance instead of a namespace
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/Module.zig b/src/Module.zig index b51ceda1a9..d332c4db53 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -5620,10 +5620,6 @@ pub fn populateTestFunctions( } const decl = mod.declPtr(decl_index); const test_fn_ty = decl.ty.slicePtrFieldType(mod).childType(mod); - const null_usize = try mod.intern(.{ .opt = .{ - .ty = try mod.intern(.{ .opt_type = .usize_type }), - .val = .none, - } }); const array_decl_index = d: { // Add mod.test_functions to an array decl then make the test_functions @@ -5631,11 +5627,6 @@ pub fn populateTestFunctions( const test_fn_vals = try gpa.alloc(InternPool.Index, mod.test_functions.count()); defer gpa.free(test_fn_vals); - // Add a dependency on each test name and function pointer. - var array_decl_dependencies = std.ArrayListUnmanaged(Decl.Index){}; - defer array_decl_dependencies.deinit(gpa); - try array_decl_dependencies.ensureUnusedCapacity(gpa, test_fn_vals.len * 2); - for (test_fn_vals, mod.test_functions.keys()) |*test_fn_val, test_decl_index| { const test_decl = mod.declPtr(test_decl_index); // TODO: write something like getCoercedInts to avoid needing to dupe @@ -5655,8 +5646,6 @@ pub fn populateTestFunctions( }); break :n test_name_decl_index; }; - array_decl_dependencies.appendAssumeCapacity(test_decl_index); - array_decl_dependencies.appendAssumeCapacity(test_name_decl_index); try mod.linkerUpdateDecl(test_name_decl_index); const test_fn_fields = .{ @@ -5682,8 +5671,6 @@ pub fn populateTestFunctions( } }), .addr = .{ .decl = test_decl_index }, } }), - // async_frame_size - null_usize, }; test_fn_val.* = try mod.intern(.{ .aggregate = .{ .ty = test_fn_ty.toIntern(), |
