# Revert the last two commits in this branch · gitcafe/zig

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

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

Visibility: public

Requested revision: 4d5e0a0434a69059f623e5c51862fb1a2c553abc

Requested commit: 4d5e0a0434a69059f623e5c51862fb1a2c553abc

Commit: 4d5e0a0434a69059f623e5c51862fb1a2c553abc

Tree: 359645e37191ea162492f9814885d720421d52d2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Revert the last two commits in this branch

When the slice-by-length start position is runtime-known, it is likely
protected by a runtime-known condition and therefore a compile error is
less appropriate than a runtime panic check.

This is demonstrated in the json code that was updated and then reverted
in this commit.

When #3806 is implemented, this decision can be reassessed.

Revert "std: work around compiler unable to evaluate condition at compile time"
Revert "frontend: comptime array slice-by-length OOB detection"

This reverts commit 7741aca96c8cc6df7e8c4bd10ada741d6a3ffb9d.
This reverts commit 2583b389eaf5f7aaa0eb79b51126506c1e172d15.

```

## Parents

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

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