zig/test/incremental
mlugg f0d5e0df4d
incremental: fix errors not being deleted upon re-analysis
Previously, logic in `Compilation.getAllErrorsAlloc` was corrupting the
`failed_analysis` hashmap. This meant that on updates after the initial
update, attempts to remove entries from this map (because the `AnalUnit`
in question is being re-analyzed) silently failed. This resulted in
compile errors from earlier updates wrongly getting "stuck", i.e. never
being removed.

This commit also adds a few log calls which helped me to find this bug.
2025-01-01 15:49:37 +00:00
..
add_decl link: fix failing incremental test cases 2024-11-16 14:03:31 -05:00
add_decl_namespaced test: add x86_64-windows-cbe target to incremental cases 2024-10-05 20:52:26 +01:00
change_fn_type test: remove old-style incremental cases, add a few new incremental cases 2024-11-11 12:22:48 +00:00
change_shift_op test: add new incremental case 2024-11-11 12:22:55 +00:00
change_struct_same_fields test: remove old-style incremental cases, add a few new incremental cases 2024-11-11 12:22:48 +00:00
compile_error_then_log test: remove old-style incremental cases, add a few new incremental cases 2024-11-11 12:22:48 +00:00
delete_comptime_decls test: add x86_64-windows-cbe target to incremental cases 2024-10-05 20:52:26 +01:00
fix_astgen_failure link: fix failing incremental test cases 2024-11-16 14:03:31 -05:00
fix_many_errors incremental: fix errors not being deleted upon re-analysis 2025-01-01 15:49:37 +00:00
function_becomes_inline link: fix failing incremental test cases 2024-11-16 14:03:31 -05:00
hello test: add x86_64-windows-cbe target to incremental cases 2024-10-05 20:52:26 +01:00
modify_inline_fn test: add x86_64-windows-cbe target to incremental cases 2024-10-05 20:52:26 +01:00
move_src test: add x86_64-windows-cbe target to incremental cases 2024-10-05 20:52:26 +01:00
recursive_function_becomes_non_recursive link: fix failing incremental test cases 2024-11-16 14:03:31 -05:00
remove_enum_field test: add x86_64-windows-cbe target to incremental cases 2024-10-05 20:52:26 +01:00
remove_invalid_union_backing_enum incremental: add new test case 2024-10-16 14:22:33 +01:00
type_becomes_comptime_only test: add x86_64-windows-cbe target to incremental cases 2024-10-05 20:52:26 +01:00
unreferenced_error test: add x86_64-windows-cbe target to incremental cases 2024-10-05 20:52:26 +01:00