# std: fix compile errors caught by stage2 AstGen · gitcafe/zig

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

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

Visibility: public

Requested revision: 507a8096d2f9624bafaf963c3e189a477ef6b7bf

Requested commit: 507a8096d2f9624bafaf963c3e189a477ef6b7bf

Commit: 507a8096d2f9624bafaf963c3e189a477ef6b7bf

Tree: c21e3d54e1389fe44ecc7d5f230e792e26ab322d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: fix compile errors caught by stage2 AstGen

 * `comptime const` is redundant
 * don't use `extern enum`; specify a tag type.
   `extern enum` is only when you need tags to alias. But aliasing tags
   is a smell. I will be making a proposal shortly to remove `extern enum`
   from the language.
 * there is no such thing as `packed enum`.
 * instead of `catch |_|`, omit the capture entirely.
 * unused function definition with missing parameter name
 * using `try` outside of a function or test

```

## Parents

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

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