diff options
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/builtin.zig | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index ba5801e936..3675a90257 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -730,10 +730,16 @@ pub const CompilerBackend = enum(u64) { /// therefore must be kept in sync with the compiler implementation. pub const TestFn = struct { name: []const u8, - func: fn () anyerror!void, + func: testFnProto, async_frame_size: ?usize, }; +/// stage1 is *wrong*. It is not yet updated to support the new function type semantics. +const testFnProto = switch (builtin.zig_backend) { + .stage1 => fn () anyerror!void, // wrong! + else => *const fn () anyerror!void, +}; + /// This function type is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. pub const PanicFn = fn ([]const u8, ?*StackTrace) noreturn; |
