diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-06-13 18:50:53 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2023-06-13 21:48:21 +0100 |
| commit | 8a92beb088c5eb890f0b662ca6e0c8d68b72fd6a (patch) | |
| tree | 3acb3639945161008da3092313ed8a7eb107315e /lib/std/array_hash_map.zig | |
| parent | 588f45a0a1492711b2cd9991ba8e9137e583e513 (diff) | |
| download | zig-8a92beb088c5eb890f0b662ca6e0c8d68b72fd6a.tar.gz zig-8a92beb088c5eb890f0b662ca6e0c8d68b72fd6a.zip | |
Sema: move all in-memory coercion logic to InternPool
Previously, this logic was split between Sema.coerceValueInMemory and
InternPool.getCoerced. This led to issues when trying to coerce e.g. an
optional containing an aggregate, because we'd call through to
InternPool's version which only recurses on itself so could not coerce
aggregates. Unifying them is fairly simple, and also simplified a bit of
logic in Sema.
Also fixes a key lifetime bug in aggregate coercion.
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions
