# stage2: lookupIdentifier can return error.AnalysisFailed · gitcafe/zig

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

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

Visibility: public

Requested revision: 7873e4f5889f9e1b4d5b5f62d7701d7914b64ab1

Requested commit: 7873e4f5889f9e1b4d5b5f62d7701d7914b64ab1

Commit: 7873e4f5889f9e1b4d5b5f62d7701d7914b64ab1

Tree: 8ee9468285c059f3e5c09ba26d5ca99ba4eadd03

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: lookupIdentifier can return error.AnalysisFailed

This avoids causing false positive compile errors when, for example, a
file had ZIR errors, and then code tried to look up a public decl from
the failed file.

```

## Parents

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

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