| ... | ... | @@ -971,12 +971,10 @@ fn checkTextFmt(comptime fmt: []const u8) void { |
| 971 | 971 | if (fmt.len != 1) |
| 972 | 972 | @compileError("unsupported format string '" ++ fmt ++ "' when formatting text"); |
| 973 | 973 | switch (fmt[0]) { |
| 974 | // Example of deprecation: |
| 975 | // '[deprecated_specifier]' => @compileError("specifier '[deprecated_specifier]' has been deprecated, wrap your argument in `std.some_function` instead"), |
| 974 | 976 | 'x' => @compileError("specifier 'x' has been deprecated, wrap your argument in std.fmt.fmtSliceHexLower instead"), |
| 975 | 977 | 'X' => @compileError("specifier 'X' has been deprecated, wrap your argument in std.fmt.fmtSliceHexUpper instead"), |
| 976 | | 'e' => @compileError("specifier 'e' has been deprecated, wrap your argument in std.fmt.fmtSliceEscapeLower instead"), |
| 977 | | 'E' => @compileError("specifier 'E' has been deprecated, wrap your argument in std.fmt.fmtSliceEscapeUpper instead"), |
| 978 | | 'z' => @compileError("specifier 'z' has been deprecated, wrap your argument in std.zig.fmtId instead"), |
| 979 | | 'Z' => @compileError("specifier 'Z' has been deprecated, wrap your argument in std.zig.fmtEscapes instead"), |
| 980 | 978 | else => {}, |
| 981 | 979 | } |
| 982 | 980 | } |