about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-24 17:14:26 +0000
committerbors <bors@rust-lang.org>2022-12-24 17:14:26 +0000
commit7e4f4660ebb4533de629b5d7d8ac10ed572d0f2e (patch)
tree569d4852433db40daf93edd422fb69e65536874b /compiler/rustc_codegen_llvm/src
parentf5c3dfdbbf06d5997079ac7339de5002f7ced2a3 (diff)
parent15f72dd29d083bfcade93ec2b57350c2b37feed6 (diff)
downloadrust-7e4f4660ebb4533de629b5d7d8ac10ed572d0f2e.tar.gz
rust-7e4f4660ebb4533de629b5d7d8ac10ed572d0f2e.zip
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 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions