rust/library/std
Ralf Jung 722bebf163
Rollup merge of #83553 - jfrimmel:addr-of, r=m-ou-se
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 undefined behavior, which is not necessary anymore.

Technically there is now wrong/outdated documentation on stable, but I don't think this is worth a point release 😉

Fixes #83509.

``````````@rustbot`````````` modify labels: T-doc
2021-05-05 17:52:18 +02:00
..
benches
src Rollup merge of #83553 - jfrimmel:addr-of, r=m-ou-se 2021-05-05 17:52:18 +02:00
tests
build.rs
Cargo.toml Auto merge of #83776 - jyn514:update-stdarch-docs, r=Amanieu 2021-04-12 18:29:25 +00:00