From 63acc856c12fec71d96c5cbce9138204f36d6568 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 17 Feb 2024 19:19:15 -0700 Subject: [PATCH] std.http.Client: remove invalid use of refAllDecls --- lib/std/http/Client.zig | 15 --------------- lib/std/net.zig | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/std/http/Client.zig b/lib/std/http/Client.zig index 2a7cb4ffca85d7160f780cafaff1250666c76fb7..627245c4b14cf6bb0b84962515cd7d6ebc73b297 100644 --- a/lib/std/http/Client.zig +++ b/lib/std/http/Client.zig @@ -1661,18 +1661,3 @@ pub fn fetch(client: *Client, options: FetchOptions) !FetchResult { .status = req.response.status, }; } - -test { - const native_endian = comptime builtin.cpu.arch.endian(); - if (builtin.zig_backend == .stage2_llvm and native_endian == .big) { - // https://github.com/ziglang/zig/issues/13782 - return error.SkipZigTest; - } - - if (builtin.os.tag == .wasi) return error.SkipZigTest; - - if (builtin.zig_backend == .stage2_x86_64 and - !comptime std.Target.x86.featureSetHas(builtin.cpu.features, .avx)) return error.SkipZigTest; - - std.testing.refAllDecls(@This()); -} diff --git a/lib/std/net.zig b/lib/std/net.zig index 154e2f7375f38422abe5cf811c8ef7b571ac2c55..fdade0447fba7f8105b890b8ad992c1da15d8692 100644 --- a/lib/std/net.zig +++ b/lib/std/net.zig @@ -122,7 +122,7 @@ pub const Address = extern union { @memset(&sock_addr.path, 0); @memcpy(sock_addr.path[0..path.len], path); - return Address{ .un = sock_addr }; + return .{ .un = sock_addr }; } /// Returns the port in native endian. -- 2.54.0