# std: remove meta.assumeSentinel · gitcafe/zig

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

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

Visibility: public

Requested revision: 9eeae556cc77b408c8704c9bd43960f949e0ec10

Requested commit: 9eeae556cc77b408c8704c9bd43960f949e0ec10

Commit: 9eeae556cc77b408c8704c9bd43960f949e0ec10

Tree: baccdbf880f842cd8934d718c7894997f03283c8

Author: Isaac Freund

Committer: Andrew Kelley

## Message

```
std: remove meta.assumeSentinel

All but 3 callsites of this function in the standard library and
compiler were unnecessary and were removed in faf2fd18.

In this commit, the remaining 3 callsites are removed. One of them
turned out to also be unnecessary and has been replaced by slicing
directly with the length..

The 2 remaining callsites were in the very pointer-math heavy
std/os/linux/vdso.zig code which should perhaps be refactored to better
utilize slices. These 2 callsites are replaced with a plain
@ptrCast([*:0]u8, ptr) though could likely use std.mem.sliceTo() if the
surrounding code was refactored.

```

## Parents

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

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