diff options
author | bors <bors@rust-lang.org> | 2022-12-24 17:14:26 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-12-24 17:14:26 +0000 |
commit | 7e4f4660ebb4533de629b5d7d8ac10ed572d0f2e (patch) | |
tree | 569d4852433db40daf93edd422fb69e65536874b /tests/rustdoc-js-std/parser-errors.js | |
parent | f5c3dfdbbf06d5997079ac7339de5002f7ced2a3 (diff) | |
parent | 15f72dd29d083bfcade93ec2b57350c2b37feed6 (diff) | |
download | rust-7e4f4660ebb4533de629b5d7d8ac10ed572d0f2e.tar.gz |
Auto merge of #104977 - RalfJung:ptr-from-ref, r=dtolnay
add ptr::from_{ref,mut}
We have methods to avoid almost all `as` casts around raw pointer handling, except for the initial cast from reference to raw pointer. These new methods close that gap.
(I also moved `null_mut` next to `null` to keep the file consistently organized.)
r? libs-api
Tracking issue: https://github.com/rust-lang/rust/issues/106116
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions