all: replace comptime try with try comptime

Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
Eric Joldasov
2023-06-05 14:29:28 +06:00
parent 6078781ae5
commit d884d7050e
67 changed files with 709 additions and 709 deletions

View File

@@ -20,7 +20,7 @@ test "passing an optional integer as a parameter" {
}
};
try expect(S.entry());
comptime try expect(S.entry());
try comptime expect(S.entry());
}
pub const EmptyStruct = struct {};
@@ -38,7 +38,7 @@ test "equality compare optional pointers" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
try testNullPtrsEql();
comptime try testNullPtrsEql();
try comptime testNullPtrsEql();
}
fn testNullPtrsEql() !void {
@@ -117,7 +117,7 @@ test "equality compare optional with non-optional" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
try test_cmp_optional_non_optional();
comptime try test_cmp_optional_non_optional();
try comptime test_cmp_optional_non_optional();
}
fn test_cmp_optional_non_optional() !void {
@@ -168,7 +168,7 @@ test "unwrap function call with optional pointer return value" {
}
};
try S.entry();
comptime try S.entry();
try comptime S.entry();
}
test "nested orelse" {
@@ -195,7 +195,7 @@ test "nested orelse" {
};
};
try S.entry();
comptime try S.entry();
try comptime S.entry();
}
test "self-referential struct through a slice of optional" {
@@ -250,7 +250,7 @@ test "coerce an anon struct literal to optional struct" {
}
};
try S.doTheTest();
comptime try S.doTheTest();
try comptime S.doTheTest();
}
test "0-bit child type coerced to optional return ptr result location" {
@@ -277,7 +277,7 @@ test "0-bit child type coerced to optional return ptr result location" {
};
};
try S.doTheTest();
comptime try S.doTheTest();
try comptime S.doTheTest();
}
test "0-bit child type coerced to optional" {
@@ -303,7 +303,7 @@ test "0-bit child type coerced to optional" {
};
};
try S.doTheTest();
comptime try S.doTheTest();
try comptime S.doTheTest();
}
test "array of optional unaligned types" {