# std.zig.Zir: remove ref_start_index from enum fields of Index and OptionalIndex · gitcafe/zig

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

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

Visibility: public

Requested revision: bdbfc7de3fd3a05f338ec8beaa29894547a9df4c

Requested commit: bdbfc7de3fd3a05f338ec8beaa29894547a9df4c

Commit: bdbfc7de3fd3a05f338ec8beaa29894547a9df4c

Tree: 7e63dbaf94a83e0117a2763658fda261d60a53c2

Author: Mateusz Poliwczak

Committer: Matthew Lugg

## Message

```
std.zig.Zir: remove ref_start_index from enum fields of Index and OptionalIndex

This change removes the ref_start_index from the possible enum values of
Index and OptionalIndex. It is not really a index, but a constant that
tells the offset of static Refs, so lets move it where such constant
belongs i.e. to the Ref.

```

## Parents

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

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