about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJulian Frimmel <julian.frimmel@gmail.com>2021-03-27 11:44:39 +0100
committerJulian Frimmel <julian.frimmel@gmail.com>2021-05-03 23:14:17 +0200
commit389333a21c6a0ed51952c6d5d0b339e7d274ef2e (patch)
treee96871296ffb9db43ad5e93d9776ae824e5e3c4f /library/std/src/sys/unix/stack_overflow.rs
parent5208f63ba8ec70a2a7a074d7ecd59a94693286fc (diff)
downloadrust-389333a21c6a0ed51952c6d5d0b339e7d274ef2e.tar.gz
rust-389333a21c6a0ed51952c6d5d0b339e7d274ef2e.zip
Update `ptr` docs with regards to `ptr::addr_of!`
This updates the documentation since `ptr::addr_of!` and
`ptr::addr_of_mut!` are now stable. One might remove the distinction
between the sections `# On packed structs` and `# Examples`, as the old
section on packed structs was primarily to prevent users of doing unde-
fined behavior, which is not necessary anymore.
There is also a new section in "how to obtain a pointer", which referen-
ces the `ptr::addr_of!` macros.

This commit contains squashed commits from code review.

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
Co-authored-by: Soveu <marx.tomasz@gmail.com>
Co-authored-by: Ralf Jung <post@ralfj.de>
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions