diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-09-29 18:51:04 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-09-30 00:09:24 +0300 |
| commit | 312260124279027a248d669e6096c3ab603fa188 (patch) | |
| tree | 6a09e77470321e38cf6687e6e6d345f8fc7c98c5 /lib/std/array_hash_map.zig | |
| parent | b3c6d774d292e6e4ddf4cd54455c4ef3c6386d66 (diff) | |
| download | zig-312260124279027a248d669e6096c3ab603fa188.tar.gz zig-312260124279027a248d669e6096c3ab603fa188.zip | |
AstGen: do not set decl_line for containers
Previously AstGen would set decl_line for containers so that
declarations inside them would be relative to the start of the
container but Sema was not aware of the line offset of the container
and would make them relative to the containers parent decl which
would then break for generic structs.
In the future when working on incremental compilation it will likely
be better to communicate the line delta to Sema but for now this
is a simpler fix that correctly handles the non-incremental case.
Closes #12725
Closes #12818
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions
