diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-10-13 17:56:47 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2024-10-19 19:15:23 +0100 |
| commit | 4be0cf30fc10420c2b5fa97a3b25a07b7a0ce7f3 (patch) | |
| tree | 0c239f9b68fbbc13ae94462756d466ef774a9772 /src/Type.zig | |
| parent | ec19086aa0491024622c444b0d9310560de9e6f0 (diff) | |
| download | zig-4be0cf30fc10420c2b5fa97a3b25a07b7a0ce7f3.tar.gz zig-4be0cf30fc10420c2b5fa97a3b25a07b7a0ce7f3.zip | |
test: update for `CallingConvention` changes
This also includes some compiler and std changes to correct error
messages which weren't properly updated before.
Diffstat (limited to 'src/Type.zig')
| -rw-r--r-- | src/Type.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Type.zig b/src/Type.zig index 9c44e69657..509c0325bc 100644 --- a/src/Type.zig +++ b/src/Type.zig @@ -397,7 +397,10 @@ pub fn print(ty: Type, writer: anytype, pt: Zcu.PerThread) @TypeOf(writer).Error break :print_cc; } } - try writer.print("callconv({any}) ", .{fn_info.cc}); + switch (fn_info.cc) { + .auto, .@"async", .naked, .@"inline" => try writer.print("callconv(.{}) ", .{std.zig.fmtId(@tagName(fn_info.cc))}), + else => try writer.print("callconv({any}) ", .{fn_info.cc}), + } } if (fn_info.return_type == .generic_poison_type) { try writer.writeAll("anytype"); |
