Skip to content

Commit 2465c32

Browse files
committed
Use @TypeOf instead of std.meta in test_runner.zig
This might fix a CI failure for powerpc64le-linux-musl.
1 parent 4c393c7 commit 2465c32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/compiler/test_runner.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ fn mainServer() !void {
106106
.fail = fail,
107107
.skip = skip,
108108
.leak = leak,
109-
.log_err_count = std.math.lossyCast(std.meta.FieldType(
110-
std.zig.Server.Message.TestResults.Flags,
111-
.log_err_count,
112-
), log_err_count),
109+
.log_err_count = std.math.lossyCast(
110+
@TypeOf(@as(std.zig.Server.Message.TestResults.Flags, undefined).log_err_count),
111+
log_err_count,
112+
),
113113
},
114114
});
115115
},

0 commit comments

Comments
 (0)