Commit 85492f2b91

Andrew Kelley <andrew@ziglang.org>
2022-06-12 09:56:01
std.mem.zeroes: remove call to std.meta
everybody is so horny for std.meta
1 parent 9360cfe
Changed files (1)
lib
lib/std/mem.zig
@@ -268,7 +268,7 @@ pub fn zeroes(comptime T: type) T {
         },
         .Struct => |struct_info| {
             if (@sizeOf(T) == 0) return T{};
-            if (comptime meta.containerLayout(T) == .Extern) {
+            if (struct_info.layout == .Extern) {
                 var item: T = undefined;
                 set(u8, asBytes(&item), 0);
                 return item;