# Sema: eliminate \`src\` field · gitcafe/zig

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

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

Visibility: public

Requested revision: 434537213e406191959818f573b24ca45c1b0e45

Requested commit: 434537213e406191959818f573b24ca45c1b0e45

Commit: 434537213e406191959818f573b24ca45c1b0e45

Tree: 5892fc8f71a48ef1188cee96112a5d7a5706c14f

Author: mlugg

Committer: mlugg

## Message

```
Sema: eliminate `src` field

`sema.src` is a failed experiment. It introduces complexity, and makes
often unwarranted assumptions about the existence of instructions
providing source locations, requiring an unreasonable amount of caution
in AstGen for correctness. Eliminating it simplifies the whole frontend.

This required adding source locations to a few instructions, but the
cost in ZIR bytes should be counteracted by the other work on this
branch.

```

## Parents

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

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