# stage2: omit Decl compile errors from failed AstGen files · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7cd94d212361bc5662e8cc6959cd32edca1df03a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7cd94d212361bc5662e8cc6959cd32edca1df03a

Requested commit: 7cd94d212361bc5662e8cc6959cd32edca1df03a

Commit: 7cd94d212361bc5662e8cc6959cd32edca1df03a

Tree: 7a5fe6aa6a2da5c6f160659c8b8894a93662d953

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: omit Decl compile errors from failed AstGen files

Just like when new parse errors occur during an update, when new AstGen
errors occur during an update, we do not reveal compile errors for Decl
objects which are inside of a newly failed File. Once the File passes
AstGen successfully, it will be compared with the previously succeeded
ZIR and the saved Decl compile errors will be handled properly.

```

## Parents

- [dc036f5b6fde67c4a74701c75c5947a956abaec1](https://git.cafe/gitcafe/zig/commit/dc036f5b6fde67c4a74701c75c5947a956abaec1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7cd94d212361bc5662e8cc6959cd32edca1df03a?format=markdown)
