Commit 11bc6eb
committed
Auto merge of rust-lang#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: rust-lang#106116File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments