diff options
| author | ominitay <37453713+ominitay@users.noreply.github.com> | 2022-09-29 19:45:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-29 21:45:30 +0300 |
| commit | 295451dfe5f22e0bea63e737554326889af1fb13 (patch) | |
| tree | 83c41fac51088b6375fac16338bf8d3eb609bbfc /lib/std/builtin.zig | |
| parent | 9c99a88796cb00a220b4d093f5f1a84339167ace (diff) | |
| download | zig-295451dfe5f22e0bea63e737554326889af1fb13.tar.gz zig-295451dfe5f22e0bea63e737554326889af1fb13.zip | |
std: Replace use of stage1 function pointers
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index f1b0a551c0..a2d3bcd870 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -736,16 +736,10 @@ pub const CompilerBackend = enum(u64) { /// therefore must be kept in sync with the compiler implementation. pub const TestFn = struct { name: []const u8, - func: testFnProto, + func: std.meta.FnPtr(fn () anyerror!void), 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, ?usize) noreturn; |
