# stage2: hook up semantic analysis of struct fields · gitcafe/zig

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

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

Visibility: public

Requested revision: 773902e9de5fc2c7db72c2fdab29ee8e5dd2e337

Requested commit: 773902e9de5fc2c7db72c2fdab29ee8e5dd2e337

Commit: 773902e9de5fc2c7db72c2fdab29ee8e5dd2e337

Tree: ce9b18f1c43e93b93c100f351886d1d32e1422f3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: hook up semantic analysis of struct fields

Now that they are lazy, they need to get analyzed in the correct
context, when requested.

This commit also hooks up std.builtin type values being resolved
properly. This is needed, for example, with the `@export` builtin
function, which occurs in start.zig, for `std.builtin.ExportOptions`.
The ZIR code uses the special `Ref.export_options` value, and semantic
analysis has to map this to the corresponding type from `std.builtin`.

```

## Parents

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

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