reference
reference copied to clipboard
Document unaligned reference restrictions
cc https://github.com/rust-lang/rust/pull/102513
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
#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.