| ... | ... | @@ -634,12 +634,7 @@ pub fn formatIntValue( |
| 634 | 634 | @compileError("Cannot print integer that is larger than 8 bits as a ascii"); |
| 635 | 635 | } |
| 636 | 636 | } else if (comptime std.mem.eql(u8, fmt, "Z")) { |
| 637 | | if (@typeInfo(@TypeOf(int_value)).Int.bits <= 8) { |
| 638 | | const c: u8 = int_value; |
| 639 | | return formatZigEscapes(@as(*const [1]u8, &c), options, writer); |
| 640 | | } else { |
| 641 | | @compileError("Cannot escape character with more than 8 bits"); |
| 642 | | } |
| 637 | @compileError("specifier 'Z' has been deprecated, wrap your argument in std.zig.fmtEscapes instead"); |
| 643 | 638 | } else if (comptime std.mem.eql(u8, fmt, "u")) { |
| 644 | 639 | if (@typeInfo(@TypeOf(int_value)).Int.bits <= 21) { |
| 645 | 640 | return formatUnicodeCodepoint(@as(u21, int_value), options, writer); |