Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Implement serialization of [T; 0] #168

Merged
merged 1 commit into from
Nov 7, 2016

Conversation

bluss
Copy link
Contributor

@bluss bluss commented Nov 7, 2016

I ran into this when migrating from (), (usize, ), (usize, usize) and so on to fixed size arrays. The generic code ends up using [usize; 0] as its smallest case.

The [T; 0] case could be implemented without trait bound for T, but it didn't seem to really matter, symmetry with the other array cases seems good.

@alexcrichton alexcrichton merged commit 7321bc8 into rust-lang-deprecated:master Nov 7, 2016
@bluss bluss deleted the serialize-array-0 branch November 7, 2016 10:00
@bluss
Copy link
Contributor Author

bluss commented Nov 7, 2016

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants