# Sema: elide comptime-checked slice safety · gitcafe/zig

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

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

Visibility: public

Requested revision: 870e3843c5736def21234ca8b7159b179985505c

Requested commit: 870e3843c5736def21234ca8b7159b179985505c

Commit: 870e3843c5736def21234ca8b7159b179985505c

Tree: 599fc65f4c195703d6687e72e01fa8b104407bdc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: elide comptime-checked slice safety

Before, Zig would emit a start<=end safety check for `foo[1..2]` even
though it was already checked at compile-time.

```

## Parents

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

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