0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

zig fmt: Fix packed -> bitpack causing an error, integrate with --stdin

This makes `zig fmt` use the same tactic as the ambiguous precedence stuff for automatically renaming packed -> bitpack. That is, the parser still emits an error for `packed`, but all such "expected 'bitpack', found 'packed'" errors are removed during `zig fmt` since the render process fixes them.

Additionally, this commit makes both packed -> bitpack and ambiguous precedence fixes work with the --stdin flag, which wasn't the case previously.
This commit is contained in:
Ryan Liptak 2026-11-08 01:19:17 -08:00
commit 7fb365cd66