

add ptr::from_{ref,mut} by RalfJung · Pull Request #104977 · rust-lang/rust · Gi...
source link: https://github.com/rust-lang/rust/pull/104977
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

add ptr::from_{ref,mut} #104977
Conversation
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: #106116
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
labels
Collaborator
rustbot commented Nov 27, 2022
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
Member
Author
RalfJung commented Dec 21, 2022
@rust-lang/libs-api how do we make progress on this PR? It's just been sitting here for 3 weeks now. |
Member
dtolnay
left a comment
Seems good to me. Please file a tracking issue.
Outdated Show resolved
Member
Author
RalfJung commented Dec 24, 2022
@bors r=dtolnay |
Contributor
bors commented Dec 24, 2022
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Contributor
bors commented Dec 24, 2022
Contributor
bors commented Dec 24, 2022
|
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
labels
Collaborator
rust-log-analyzer commented Dec 24, 2022
Member
dtolnay commented Dec 24, 2022
@bors retry |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Contributor
bors commented Dec 24, 2022
Contributor
bors commented Dec 24, 2022
|
Collaborator
rust-timer commented Dec 24, 2022
Finished benchmarking commit (7e4f466): comparison URL. Overall result:
|
mean | range | count | |
---|---|---|---|
Regressions ![]() (primary) |
- | - | 0 |
Regressions ![]() (secondary) |
- | - | 0 |
Improvements ![]() (primary) |
- | - | 0 |
Improvements ![]() (secondary) |
-4.0% | [-4.0%, -4.0%] | 1 |
All ![]() ![]() |
- | - | 0 |
Max RSS (memory usage)
This benchmark run did not return any relevant results for this metric.
Cycles
This benchmark run did not return any relevant results for this metric.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
None yet
Recommend
-
10
Miri: make size/align_of_val work for dangling raw ptrs #80491 Conversation
-
5
Member RalfJung commented
-
13
New issue mir-opt-level 4 is the new 3 #1737
-
13
Copy link Member RalfJung
-
8
Copy link not-my-profile commented
-
12
Copy link Contributor
-
7
New issue Fix ICE in ptr_arg #8387
-
3
mir_to_const improvements #11565
-
6
Add VarDebugInfo to Stable MIR #117972 ...
-
7
Conversation Member...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK