# std.builtin: make \`returnError\` not take the error trace · gitcafe/zig

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

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

Visibility: public

Requested revision: 9b7b240c8e4757bf0119db70da30722aa97fd6ae

Requested commit: 9b7b240c8e4757bf0119db70da30722aa97fd6ae

Commit: 9b7b240c8e4757bf0119db70da30722aa97fd6ae

Tree: 8c8c8c41a730420b6ab62b48a9c8560bb735137c

Author: mlugg

Committer: Jacob Young

## Message

```
std.builtin: make `returnError` not take the error trace

It's now unnecessary to explicitly pass this, because it receives an
implicit error trace parameter anyway, so can just use
`@errorReturnTrace()`. The previous commit updated Sema to expect this
new interface. This saves an AIR instruction at all `returnError` call
sites.

```

## Parents

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

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