diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-10-27 19:22:40 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-10-28 04:30:27 -0400 |
| commit | 256ab68a97cb6a84278c78d93917ab5e8ae53209 (patch) | |
| tree | b5838383e70b6c4c0e12a053def4f2af022ec68c /lib/std/debug.zig | |
| parent | 9ff9ea38ea2a7dc776bb2954d31109ec1c81d191 (diff) | |
| download | zig-256ab68a97cb6a84278c78d93917ab5e8ae53209.tar.gz zig-256ab68a97cb6a84278c78d93917ab5e8ae53209.zip | |
frontend: make Decl.zir_decl_index typed
This field had the wrong type. It's not a `Zir.Inst.Index`, it's
actually a `Zir.OptionalExtraIndex`. Also, the former is currently
aliased to `u32` while the latter is a nonexhaustive enum that gives us
more type checking.
This commit is preparation for making this field non-optional. Now it
can be changed to `Zir.ExtraIndex` and then the compiler will point out
all the places that the non-optional assumption is being violated.
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
