zig/test/incremental
mlugg 7d54c62c8a incremental: fix adding/removing aggregate fields
I don't recall why I put these checks here -- they aren't correct. We
can freely recreate a type even if its fields have changed, because we
are going to re-do all type resolution.

The only conditions for recreations are (a) the ZIR index must not be
lost and (b) the number of captures must be the same. These conditions
are permissible because if either is violated, we can guarantee that
analysis of a valid `zirStructDecl` (etc) will never reference this
type (since the ZIR index has just been tracked, and the captures have
just been created based on the ZIR).

Adds a corresponding test case.

Resolves: #21185
2024-08-24 20:30:52 +01:00
..
add_decl tools: improve incr-check 2024-08-17 18:50:10 -04:00
add_decl_namespaced tools,test: improve incr-check and add new incremental tests 2024-08-17 18:50:10 -04:00
delete_comptime_decls test: remove accidental hard tab 2024-08-21 01:30:46 +01:00
hello incr-test: running an update 2024-07-20 01:06:29 -07:00
modify_inline_fn Sema: register correct dependencies for inline calls 2024-08-21 01:30:46 +01:00
move_src test: add incremental compilation test for moving @src() call 2024-08-21 01:30:46 +01:00
remove_enum_field incremental: fix adding/removing aggregate fields 2024-08-24 20:30:52 +01:00
type_becomes_comptime_only test: add incremental case 2024-08-18 18:10:59 +01:00
unreferenced_error tools,test: improve incr-check and add new incremental tests 2024-08-17 18:50:10 -04:00