reference icon indicating copy to clipboard operation
reference copied to clipboard

Document unaligned reference restrictions

Open ehuss opened this issue 2 years ago • 2 comments

cc https://github.com/rust-lang/rust/pull/102513

ehuss avatar Feb 01 '23 02:02 ehuss

As part of this, please also delete this outdated warning:

https://github.com/rust-lang/reference/blob/b9ccb0960e5e98154020d4c02a09cc3901bc2500/src/type-layout.md?plain=1#L552-L558

https://github.com/rust-lang/reference/blob/b9ccb0960e5e98154020d4c02a09cc3901bc2500/src/type-layout.md?plain=1#L590

dtolnay avatar Feb 05 '23 06:02 dtolnay

#1367 has removed the warning, but there still needs to be something added about the restriction of creating unaligned references (probably in the pointers page?). Also, I don't think "unaligned" is ever explicitly defined, which probably should be covered.

ehuss avatar Jun 27 '23 03:06 ehuss