diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-11 17:34:13 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-11 17:34:13 -0700 |
| commit | cbbc7cc8b1edeeae1715248a5d13304027698367 (patch) | |
| tree | 08305439f53718e48bd65da4ae8751949dab218b /src/stage1/ast_render.cpp | |
| parent | 5d9fc11d18bef9142cb32af3d1515b6de9f125ab (diff) | |
| download | zig-cbbc7cc8b1edeeae1715248a5d13304027698367.tar.gz zig-cbbc7cc8b1edeeae1715248a5d13304027698367.zip | |
stage2: better handling of file-level compile errors across updates
* `Module.File` now retains the most recent successful ZIR in the event
that an update causes a ZIR compile error. This way Zig does not
throw out useful semantic analysis results when an update temporarily
introduces a ZIR compile error.
* Semantic analysis of a File now unconditionally creates a Decl object
for the File. The Decl object is marked as `file_failed` in case of
File-level compile errors. This allows detecting of the File being
outdated, and dependency tracking just like any other Decl.
Diffstat (limited to 'src/stage1/ast_render.cpp')
0 files changed, 0 insertions, 0 deletions
