# stage2: encode one-possible-value tuple specially · gitcafe/zig

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

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

Visibility: public

Requested revision: 6a9a918fbe4adc23dd7d7573c6f1e499f4be074e

Requested commit: 6a9a918fbe4adc23dd7d7573c6f1e499f4be074e

Commit: 6a9a918fbe4adc23dd7d7573c6f1e499f4be074e

Tree: f94c3d80a82b04a905d725689740af1d8c90dc97

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: encode one-possible-value tuple specially

Anonymous structs and anonymous tuples can be stored via a
only_possible_value tag because their type encodings, by definition,
will have every value specified, which can be used to populate the
fields slice in `Key.Aggregate`.

Also fix `isTupleOrAnonStruct`.

```

## Parents

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

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