authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-17 19:19:15-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-23 02:37:11-07:00
log63acc856c12fec71d96c5cbce9138204f36d6568
tree760060675ac0c8d38cbfe25354043df3d7e10310
parentaccbba3cd8143eb85d3cb7d8d52f092c6fb9c847

std.http.Client: remove invalid use of refAllDecls


2 files changed, 1 insertions(+), 16 deletions(-)

lib/std/http/Client.zig-15
......@@ -1661,18 +1661,3 @@ pub fn fetch(client: *Client, options: FetchOptions) !FetchResult {
16611661 .status = req.response.status,
16621662 };
16631663}
1664
1665test {
1666 const native_endian = comptime builtin.cpu.arch.endian();
1667 if (builtin.zig_backend == .stage2_llvm and native_endian == .big) {
1668 // https://github.com/ziglang/zig/issues/13782
1669 return error.SkipZigTest;
1670 }
1671
1672 if (builtin.os.tag == .wasi) return error.SkipZigTest;
1673
1674 if (builtin.zig_backend == .stage2_x86_64 and
1675 !comptime std.Target.x86.featureSetHas(builtin.cpu.features, .avx)) return error.SkipZigTest;
1676
1677 std.testing.refAllDecls(@This());
1678}
lib/std/net.zig+1-1
......@@ -122,7 +122,7 @@ pub const Address = extern union {
122122 @memset(&sock_addr.path, 0);
123123 @memcpy(sock_addr.path[0..path.len], path);
124124
125 return Address{ .un = sock_addr };
125 return .{ .un = sock_addr };
126126 }
127127
128128 /// Returns the port in native endian.