-
Notifications
You must be signed in to change notification settings - Fork 128
Simplify some Ptr operations #2577
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
Conversation
5774b01 to
30ab41e
Compare
| // those terms. | ||
|
|
||
| use core::{marker::PhantomData, ops::Range, ptr::NonNull}; | ||
| use core::{marker::PhantomData, mem, ops::Range, ptr::NonNull}; |
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.
You'll need a #[cfg(doc)] use core::ptr::NonNull; to get CI to pass.
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.
Done
30ab41e to
077c7bd
Compare
Some raw pointer casts now have the signature `fn(PtrInner) -> PtrInner` instead of `fn(PtrInner) -> NonNull`. Simplify the implementations of some `Ptr` methods. Co-authored-by: Jack Wrenn <[email protected]> gherrit-pr-id: I1945c8e554dd80a0475462d0dc5e0ae1eb2e9ac4
077c7bd to
a6f8897
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2577 +/- ##
==========================================
+ Coverage 88.85% 88.91% +0.05%
==========================================
Files 20 20
Lines 5312 5313 +1
==========================================
+ Hits 4720 4724 +4
+ Misses 592 589 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Some raw pointer casts now have the signature
fn(PtrInner) -> PtrInnerinstead of
fn(PtrInner) -> NonNull. Simplify the implementations ofsome
Ptrmethods.Co-authored-by: Jack Wrenn [email protected]
This PR is on branch transmute-ref-dst.