# std.meta: fix unit tests depending on unstable behavior · gitcafe/zig

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

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

Visibility: public

Requested revision: f5f5b9373deae53a544497147cfd1380df34c000

Requested commit: f5f5b9373deae53a544497147cfd1380df34c000

Commit: f5f5b9373deae53a544497147cfd1380df34c000

Tree: 072d937b2b90ca2127afbd4fe463e7b8a7a6891b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.meta: fix unit tests depending on unstable behavior

The unit tests of std.meta depended on `@typeInfo` for the same type
returning a slice of declarations and fields with the same pointer
address. This is not something guaranteed by the language specification.

```

## Parents

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

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