Skip to content
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

[pointer] SizeEq supports raw pointer transmutes #2427

Merged
merged 1 commit into from
Mar 8, 2025

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Mar 7, 2025

This permits us to remove the KnownLayout bounds from
Ptr::transmute, and thus to remove Ptr::transmute_sized entirely.
This also allows us to remove the hand-rolled impl of TryFromBytes for
ManuallyDrop<T>, replacing it with an invocation of
impl_for_transmute_from!.


This PR is on branch cell-traits.

Base automatically changed from I3d825b6c6b99277c96d9fd6a6761bdfad2000473 to main March 7, 2025 19:32
@joshlf joshlf added this pull request to the merge queue Mar 7, 2025
@joshlf joshlf removed this pull request from the merge queue due to a manual request Mar 7, 2025
@joshlf joshlf added this pull request to the merge queue Mar 7, 2025
This permits us to remove the `KnownLayout` bounds from
`Ptr::transmute`, and thus to remove `Ptr::transmute_sized` entirely.
This also allows us to remove the hand-rolled impl of `TryFromBytes` for
`ManuallyDrop<T>`, replacing it with an invocation of
`impl_for_transmute_from!`.

gherrit-pr-id: I090715fd9ed6f100fd35513b05054015621ecb9c
@joshlf joshlf removed this pull request from the merge queue due to a manual request Mar 7, 2025
@joshlf joshlf force-pushed the I090715fd9ed6f100fd35513b05054015621ecb9c branch from b544516 to 3a19028 Compare March 7, 2025 22:27
@joshlf joshlf enabled auto-merge March 7, 2025 22:27
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 45.90164% with 33 lines in your changes missing coverage. Please review.

Project coverage is 87.53%. Comparing base (5ad3b3f) to head (3a19028).

Files with missing lines Patch % Lines
src/impls.rs 25.00% 18 Missing ⚠️
src/pointer/transmute.rs 0.00% 9 Missing ⚠️
src/util/macros.rs 73.91% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2427      +/-   ##
==========================================
- Coverage   88.03%   87.53%   -0.51%     
==========================================
  Files          17       18       +1     
  Lines        6412     6408       -4     
==========================================
- Hits         5645     5609      -36     
- Misses        767      799      +32     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshlf joshlf added this pull request to the merge queue Mar 8, 2025
Merged via the queue into main with commit d735ecf Mar 8, 2025
87 checks passed
@joshlf joshlf deleted the I090715fd9ed6f100fd35513b05054015621ecb9c branch March 8, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants