diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-20 15:36:40 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-20 16:17:16 -0700 |
| commit | 4fccc95b0152aefeb40912768ec045b57a2fdc2b (patch) | |
| tree | 711ec4766c0cd236b239eb448398d2162c770068 /lib/std/array_hash_map.zig | |
| parent | e86ff712a666ab5be54fa763cc12a5f245718117 (diff) | |
| download | zig-4fccc95b0152aefeb40912768ec045b57a2fdc2b.tar.gz zig-4fccc95b0152aefeb40912768ec045b57a2fdc2b.zip | |
Sema: fix requiresComptime infinite recursion
When asking a struct or union whether the type requires comptime, it may
need to ask itself recursively, for example because of a field which is
a pointer to itself. This commit adds a field to each to keep track of
when computing the "requires comptime" value and returns `false` if the
check is already ongoing.
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions
