Skip to content

Commit 11bc6eb

Browse files
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#106116
2 parents 1972be5 + 85a496a commit 11bc6eb

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)