aboutsummaryrefslogtreecommitdiff
path: root/lib/std/bounded_array.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-08-14 00:08:38 +0100
committerJacob Young <jacobly0@users.noreply.github.com>2024-08-17 18:50:10 -0400
commit3fb5cad07dd3b10ad32a116cbd7195218b0a93fe (patch)
treefc4ce5844b794bc131a4dde5b4ae2d4885e29ba4 /lib/std/bounded_array.zig
parent50960fac80b1d04f7858215d963fa64a7583210b (diff)
downloadzig-3fb5cad07dd3b10ad32a116cbd7195218b0a93fe.tar.gz
zig-3fb5cad07dd3b10ad32a116cbd7195218b0a93fe.zip
Sema: don't delete reified enum type with error in field
An enum type is kind of like a struct or union type, in that field errors are happening during type resolution. The only difference is that type resolution happens at the time the type is created. So, errors in fields should not cause the type to be deleted: we've already added a reference entry, and incremenetal dependencies which must be invalidated if the compile error is fixed. Once we call `WipEnumType.prepare`, we should never call `WipEnumType.cancel`. This is analagous to logic for enum declarations in `Sema.zirEnumDecl`.
Diffstat (limited to 'lib/std/bounded_array.zig')
0 files changed, 0 insertions, 0 deletions