Use @TypeOf instead of std.meta in test_runner.zig

This might fix a CI failure for powerpc64le-linux-musl.
This commit is contained in:
Carl Åstholm 2024-04-07 21:16:29 +02:00
parent 4c393c7468
commit 2465c328aa

View File

@ -106,10 +106,10 @@ fn mainServer() !void {
.fail = fail,
.skip = skip,
.leak = leak,
.log_err_count = std.math.lossyCast(std.meta.FieldType(
std.zig.Server.Message.TestResults.Flags,
.log_err_count,
), log_err_count),
.log_err_count = std.math.lossyCast(
@TypeOf(@as(std.zig.Server.Message.TestResults.Flags, undefined).log_err_count),
log_err_count,
),
},
});
},