diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-05-31 10:52:46 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-31 10:52:46 -0600 |
| commit | c0df1d4e805c8f521b541592818bca0379434637 (patch) | |
| tree | 578d011c471a74004dbf1dede16149c50552b033 /src/liballoc_system | |
| parent | b851d1cdb47b5961a4b37b0645232a18e122663f (diff) | |
| parent | c25e271858d3aa131814a6c60669783d20b5e89e (diff) | |
| download | rust-c0df1d4e805c8f521b541592818bca0379434637.tar.gz rust-c0df1d4e805c8f521b541592818bca0379434637.zip | |
Rollup merge of #42252 - stjepang:clarify-alignof-docs, r=nikomatsakis
Clarify the docs for align_of and its variants It's okay to have unaligned raw pointers and then use `ptr::write_unaligned` and `ptr::read_unaligned`. However, using unaligned `&T` and `&mut T` would be undefined behavior. The current documentation seems to indicate that everything has to be aligned, but in reality only references do. This PR changes the text of docs accordingly. r? @sfackler
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions
