# x86_64: implement error set and enum safety · gitcafe/zig

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

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

Visibility: public

Requested revision: 8159ff8b811a1621674b0f00a01b5a92698af8f9

Requested commit: 8159ff8b811a1621674b0f00a01b5a92698af8f9

Commit: 8159ff8b811a1621674b0f00a01b5a92698af8f9

Tree: 273c5d568004ec6d40e0d35919ddf81533e54dcd

Author: Jacob Young

Committer: Jacob Young

## Message

```
x86_64: implement error set and enum safety

This is all of the expected 0.14.0 progress on #21530, which can now be
postponed once this commit is merged.

This required rewriting the (un)wrap operations since the original
implementations were extremely buggy.

Also adds an easy way to retrigger Sema OPV bugs so that I don't have to
keep updating #22419 all the time.

```

## Parents

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

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