# Revert "Treat blocks with "return" as "noreturn"" · gitcafe/zig

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

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

Visibility: public

Requested revision: 41bf81dc3231eb763c93eb95b152e7ab8d3c5af8

Requested commit: 41bf81dc3231eb763c93eb95b152e7ab8d3c5af8

Commit: 41bf81dc3231eb763c93eb95b152e7ab8d3c5af8

Tree: 6610d43dfab44f104e7894f3d31991ff38821512

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

````
Revert "Treat blocks with "return" as "noreturn""

This reverts commit 135b91aecd9be1f6f5806b667e07e383dd481198.

"endsWithBreak()" is not a meaningful question to ask and should not be
used this way. A simple example that defeats this logic is:

```zig
export fn entry() void {
    outer: {
        {
            break :outer;
        }
        return;
    }
}
```

````

## Parents

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

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