reference
reference copied to clipboard
Correct repr(Rust) overlapping fields rule for enums and unions
As currently written, the reference seems to say that the fields of a repr(Rust) union do not overlap, and that all fields of an enum do not overlap, which is not true. It looks like this line in the reference was written for structs only, but it actually applies to all three kinds of type so needs adjustment.
:umbrella: The latest upstream changes (possibly acd6794e712d5e2ef6f5c84fb95688d32a69b816) made this pull request unmergeable. Please resolve the merge conflicts.
This is handled in #1654 btw.