# compiler: rework inferred error sets · gitcafe/zig

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

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

Visibility: public

Requested revision: f3dc53f6b53e8493b341f82cb06a56e33e80e6b7

Requested commit: f3dc53f6b53e8493b341f82cb06a56e33e80e6b7

Commit: f3dc53f6b53e8493b341f82cb06a56e33e80e6b7

Tree: a5c5c93af8ea6661214790e54e22fd5af3e0d6d6

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
compiler: rework inferred error sets

 * move inferred error sets into InternPool.
   - they are now represented by pointing directly at the corresponding
     function body value.
 * inferred error set working memory is now in Sema and expires after
   the Sema for the function corresponding to the inferred error set is
   finished having its body analyzed.
 * error sets use a InternPool.Index.Slice rather than an actual slice
   to avoid lifetime issues.

```

## Parents

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

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