Stream: t-lang/wg-unsafe-code-guidelines

Topic: read/write_unaligned with ZST

kennytm (Dec 28 2018 at 11:35, on Zulip):

In <> and <>, the Safety section mentioned that

Note that even if T has size 0, the pointer must be non-NULL and properly aligned.

Is this just a copy-paste error, or a special restriction for ZSTs?

Nicole Mazzuca (Dec 28 2018 at 11:36, on Zulip):

copy paste error

kennytm (Dec 28 2018 at 11:37, on Zulip):

thanks :)

Last update: Jul 02 2020 at 12:55UTC