# Sema: improve new error messages related to naked functions · gitcafe/zig

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

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

Visibility: public

Requested revision: 89d660c3ebed27996ac08c9cb3d75718d6a007db

Requested commit: 89d660c3ebed27996ac08c9cb3d75718d6a007db

Commit: 89d660c3ebed27996ac08c9cb3d75718d6a007db

Tree: c7bd0af065fbb5b1f1de62415653602ea623c100

Author: Jacob Young

Committer: Andrew Kelley

## Message

```
Sema: improve new error messages related to naked functions

 * pass a source location to all safety checks
 * add notes about what is disallowed in naked functions

Closes #16651

```

## Parents

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

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