0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley 0e37ff0d59 std.fmt: breaking API changes
added adapter to AnyWriter and GenericWriter to help bridge the gap
between old and new API

make std.testing.expectFmt work at compile-time

std.fmt no longer has a dependency on std.unicode. Formatted printing
was never properly unicode-aware. Now it no longer pretends to be.

Breakage/deprecations:
* std.fs.File.reader -> std.fs.File.deprecatedReader
* std.fs.File.writer -> std.fs.File.deprecatedWriter
* std.io.GenericReader -> std.io.Reader
* std.io.GenericWriter -> std.io.Writer
* std.io.AnyReader -> std.io.Reader
* std.io.AnyWriter -> std.io.Writer
* std.fmt.format -> std.fmt.deprecatedFormat
* std.fmt.fmtSliceEscapeLower -> std.ascii.hexEscape
* std.fmt.fmtSliceEscapeUpper -> std.ascii.hexEscape
* std.fmt.fmtSliceHexLower -> {x}
* std.fmt.fmtSliceHexUpper -> {X}
* std.fmt.fmtIntSizeDec -> {B}
* std.fmt.fmtIntSizeBin -> {Bi}
* std.fmt.fmtDuration -> {D}
* std.fmt.fmtDurationSigned -> {D}
* {} -> {f} when there is a format method
* format method signature
  - anytype -> *std.io.Writer
  - inferred error set -> error{WriteFailed}
  - options -> (deleted)
* std.fmt.Formatted
  - now takes context type explicitly
  - no fmt string
History 2025-07-07 22:43:51 -07:00
..
behavior std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
c_abi test: Expand target coverage for C ABI tests. 2025-06-05 21:50:56 +02:00
c_import rename spirv backend name 2025-06-16 13:22:19 +03:30
cases remove usingnamespace from the language 2025-07-07 13:39:48 -07:00
incremental Dwarf: restore missing non-entry padding 2025-06-07 13:13:47 -04:00
link std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
src test: Respect various test skip options in test-cases 2025-07-03 22:18:12 +02:00
standalone std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig remove usingnamespace from the language 2025-07-07 13:39:48 -07:00
c_import.zig c_import: extract behavior tests that use @cImport 2024-02-20 18:44:43 +01:00
cases.zig remove test/cbe.zig 2024-03-28 15:24:01 +02:00
compare_output.zig std.heap: delete LoggingAllocator and friends 2025-02-06 14:23:23 -08:00
compile_errors.zig compiler: refactor Zcu.File and path representation 2025-05-18 17:37:02 +01:00
gen_h.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
llvm_ir.zig test: Add some basic LLVM IR tests for atomics, volatile, and allowzero. 2025-05-12 17:07:50 +02:00
llvm_targets.zig test: Remove x86-freebsd-none and powerpc-freebsd-eabihf from llvm_targets. 2025-05-29 16:48:28 +02:00
nvptx.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
run_translated_c.zig remove hard tabs from source code 2024-07-31 16:57:42 -07:00
stack_traces.zig test: Disable error union switch with call operand (ReleaseSafe) on macos. 2025-04-04 06:08:10 +02:00
tests.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
translate_c.zig compiler: Updates for LLVM/Clang 20 API changes. 2025-04-04 06:08:09 +02:00