# stage2: struct, union, enum, opaque, error sets get better names · gitcafe/zig

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

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

Visibility: public

Requested revision: dae22a0a1f13cc963e96cd704941eed29b8dde27

Requested commit: dae22a0a1f13cc963e96cd704941eed29b8dde27

Commit: dae22a0a1f13cc963e96cd704941eed29b8dde27

Tree: d353e68f224f4c8d9447ea2560ab1cd79189fbf5

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: struct, union, enum, opaque, error sets get better names

This commit takes advantage of the new "NameStrategy" that is exposed
in the ZIR in order to name Decls after their parent when asked to. This
makes the next failing test case pass.

```

## Parents

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

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