Skip to content

Conversation

kornelski
Copy link
Contributor

No description provided.

@197g
Copy link

197g commented Jul 5, 2020

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

@197g
Copy link

197g commented Jul 5, 2020

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 :(

@197g
Copy link

197g commented Jul 5, 2020

@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