# Sema: disallow unsafe in-memory coercions · gitcafe/zig

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

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

Visibility: public

Requested revision: f154cd1fdc748c3f9c1c499347c7c0b26f0d3e19

Requested commit: f154cd1fdc748c3f9c1c499347c7c0b26f0d3e19

Commit: f154cd1fdc748c3f9c1c499347c7c0b26f0d3e19

Tree: 16978eef86ad9d0eefca5d17443f6d40358acff6

Author: mlugg

Committer: mlugg

## Message

```
Sema: disallow unsafe in-memory coercions

The error messages here aren't amazing yet, but this is an improvement
on status quo, because the current behavior allows false negative
compile errors, so effectively miscompiles.

Resolves: #15874

```

## Parents

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

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