diff options
| author | Eric Joldasov <bratishkaerik@getgoogleoff.me> | 2023-06-04 23:56:47 +0600 |
|---|---|---|
| committer | Eric Joldasov <bratishkaerik@getgoogleoff.me> | 2023-06-13 23:45:12 +0600 |
| commit | 53fc991abde044054991d3fed405cb6733572941 (patch) | |
| tree | b2056b0511cb22afae91bbbe38a6026e92391021 /lib/std | |
| parent | c46e5eb3e1a26a0fb86a1603243497510f723f9b (diff) | |
| download | zig-53fc991abde044054991d3fed405cb6733572941.tar.gz zig-53fc991abde044054991d3fed405cb6733572941.zip | |
std.fmt.formatValue: remove `B` and `Bi` specifiers (deprecated in 0.8)
Followup to 72664df4911f5d5bddead48acde6275f1d5f2a5e.
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/fmt.zig | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index 8c4d430663..ff8ce1c5f2 100644 --- a/lib/std/fmt.zig +++ b/lib/std/fmt.zig @@ -727,12 +727,6 @@ fn formatValue( options: FormatOptions, writer: anytype, ) !void { - if (comptime std.mem.eql(u8, fmt, "B")) { - @compileError("specifier 'B' has been deprecated, wrap your argument in std.fmt.fmtIntSizeDec instead"); - } else if (comptime std.mem.eql(u8, fmt, "Bi")) { - @compileError("specifier 'Bi' has been deprecated, wrap your argument in std.fmt.fmtIntSizeBin instead"); - } - const T = @TypeOf(value); switch (@typeInfo(T)) { .Float, .ComptimeFloat => return formatFloatValue(value, fmt, options, writer), |
