# std.mem.Allocator: remove redundant check · gitcafe/zig

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

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

Visibility: public

Requested revision: f244c8891a6956fb9560c26e516278052b5acef5

Requested commit: f244c8891a6956fb9560c26e516278052b5acef5

Commit: f244c8891a6956fb9560c26e516278052b5acef5

Tree: 848104899a3216cd5e749c991e7ec9bb5e323b6c

Author: mlugg

Committer: mlugg

## Message

```
std.mem.Allocator: remove redundant check

This check doesn't make sense with the modern Allocator API; it's left over
from when realloc could change alignment. It's statically known (but not
comptime-known) to be true always. This check was one of the things
blocking Allocator from being used at comptime (related: #1291).

```

## Parents

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

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