# run AstGen even when using the stage1 backend · gitcafe/zig

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

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

Visibility: public

Requested revision: cf65ab86011c3098bff131d6b98e13a494fc4814

Requested commit: cf65ab86011c3098bff131d6b98e13a494fc4814

Commit: cf65ab86011c3098bff131d6b98e13a494fc4814

Tree: eb3f84060d0461356f14a88912054512898993c0

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
run AstGen even when using the stage1 backend

This change reduces the amount of divergence in the compiler's main
pipeline logic enough to run AstGen for all files in the compilation,
regardless of whether the stage1 or stage2 backend is being used.

Practically, this means that all Zig code is subject to new compile
errors, such as unused local variables.

Additionally:
 * remove leftover unsound asserts from recent hash map changes
 * fix sub-Compilation errors not indenting correctly

```

## Parents

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

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