# std.meta.trait: remove assumption about vector ABI size · gitcafe/zig

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

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

Visibility: public

Requested revision: 7cfa97aa4ee9eb49d97d7d3b88488387bf6d175f

Requested commit: 7cfa97aa4ee9eb49d97d7d3b88488387bf6d175f

Commit: 7cfa97aa4ee9eb49d97d7d3b88488387bf6d175f

Tree: 58ec04014b5b46f15238237acc558ec2c56374ac

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.meta.trait: remove assumption about vector ABI size

The unit test for hasUniqueRepresentation asserted that a vector of
length 3 would not have a unique representation. This would be true if
it were lowered to ABI size 8 instead of 6. However lowering it to ABI
size 6 is perfectly valid depending on the target.

This commit also simplifies the logic for hasUniqueRepresentation of
integers.

```

## Parents

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

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