Skip to content

Implement for a subset of tuples and arrays #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

kornelski
Copy link
Contributor

No description provided.

@HeroicKatora
Copy link

HeroicKatora commented Jul 5, 2020

This is not (yet) sound. The layout of tuples is not defined.

@HeroicKatora
Copy link

Reference: rust-lang/unsafe-code-guidelines#36

@kornelski kornelski closed this Jul 5, 2020
@kornelski kornelski deleted the tuples branch July 5, 2020 12:34
@kornelski
Copy link
Contributor Author

Ugh, that sucks. There's no sensible way to implement homogeneous tuple other than as contiguous array, so Rust is leaving this undefined for no good reason :(

@HeroicKatora
Copy link

@kornelski The arrays are fine, bytemuck has them as well. Only the tuples can't be added.

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

Successfully merging this pull request may close these issues.

2 participants