-
Notifications
You must be signed in to change notification settings - Fork 13.3k
add ptr::from_{ref,mut} #104977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ptr::from_{ref,mut} #104977
Conversation
92b38e5
to
ed3894b
Compare
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
ed3894b
to
9ae26c8
Compare
@rust-lang/libs-api how do we make progress on this PR? It's just been sitting here for 3 weeks now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me. Please file a tracking issue.
@bors r=dtolnay |
⌛ Testing commit 15f72dd with merge ccbb3295ef7b6c51c1f5a1e9d5019f33b05ab64d... |
💔 Test failed - checks-actions |
curl: (6) Could not resolve host: ci-mirrors.rust-lang.org @bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (7e4f466): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
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
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 tonull
to keep the file consistently organized.)r? libs-api
Tracking issue: #106116