# InternPool: avoid false negatives for functions with inferred error sets · gitcafe/zig

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

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

Visibility: public

Requested revision: 4a55fc6c53b27ed9be0bd316969fbdfbef98ad1f

Requested commit: 4a55fc6c53b27ed9be0bd316969fbdfbef98ad1f

Commit: 4a55fc6c53b27ed9be0bd316969fbdfbef98ad1f

Tree: 682bb4663ac7fc4337676bf005cfd6d75bd93138

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
InternPool: avoid false negatives for functions with inferred error sets

There is one case where function types may be inequal but we still want
to find the same function body instance in InternPool.

In the case of the functions having an inferred error set, the key used
to find an existing function body will necessarily have a unique
inferred error set type, because it refers to the function body
InternPool Index. To make this case work we omit the inferred error set
from the equality and hashing functions.

```

## Parents

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

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