# all: migrate code to new cast builtin syntax · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f26dda21171e26f44aeec8c59a75bbb3331eeb2e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f26dda21171e26f44aeec8c59a75bbb3331eeb2e

Requested commit: f26dda21171e26f44aeec8c59a75bbb3331eeb2e

Commit: f26dda21171e26f44aeec8c59a75bbb3331eeb2e

Tree: c935248861ae2693b314f2c8bc78fe38d9961b6d

Author: mlugg

Committer: Andrew Kelley

## Message

```
all: migrate code to new cast builtin syntax

Most of this migration was performed automatically with `zig fmt`. There
were a few exceptions which I had to manually fix:

* `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten
* `@truncate`'s fixup is incorrect for vectors
* Test cases are not formatted, and their error locations change

```

## Parents

- [447ca4e3fff021f471b748187b53f0a4744ad0bc](https://git.cafe/gitcafe/zig/commit/447ca4e3fff021f471b748187b53f0a4744ad0bc?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f26dda21171e26f44aeec8c59a75bbb3331eeb2e?format=markdown)
