# compiler: move error union types and error set types to InternPool · gitcafe/zig

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

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

Visibility: public

Requested revision: 9ff514b6a35b7201f45f8bff31c61b4f8cfa7a7a

Requested commit: 9ff514b6a35b7201f45f8bff31c61b4f8cfa7a7a

Commit: 9ff514b6a35b7201f45f8bff31c61b4f8cfa7a7a

Tree: dda74acc00690d1b3d31fd6e43d7ec0aa4acc882

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
compiler: move error union types and error set types to InternPool

One change worth noting in this commit is that `module.global_error_set`
is no longer kept strictly up-to-date. The previous code reserved
integer error values when dealing with error set types, but this is no
longer needed because the integer values are not needed for semantic
analysis unless `@errorToInt` or `@intToError` are used and therefore
may be assigned lazily.

```

## Parents

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

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