# std.Zig.AstGen: handle properly \.inferred_ptr and \.destructure in enum_literal handling · gitcafe/zig

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

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

Visibility: public

Requested revision: d0ba6642b5407a904ff0bec5b8f05ab65652f428

Requested commit: d0ba6642b5407a904ff0bec5b8f05ab65652f428

Commit: d0ba6642b5407a904ff0bec5b8f05ab65652f428

Tree: cc442fe013033c5a9c1c3e5d66fe1bc516944b8a

Author: Mateusz Poliwczak

Committer: Andrew Kelley

## Message

```
std.Zig.AstGen: handle properly .inferred_ptr and .destructure in enum_literal handling

rl.resultType() returns null for inferred_ptr and destructure, so move
that to the unreachable block.

```

## Parents

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

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