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] Add separate PtrInner (#1891) #2380

Merged
merged 1 commit into from
Feb 24, 2025
Merged

[pointer] Add separate PtrInner (#1891) #2380

merged 1 commit into from
Feb 24, 2025

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Feb 24, 2025

PtrInner carries all invariants which are not controlled by type parameters. Since PtrInner does not promise to uphold aliasing, alignment, or validity, we can move some utility methods to PtrInner which previously were responsible for maintaining invariants orthogonal to their purpose.

Makes progress on #1892 (still needs to be fixed on v0.8.x) Closes #1890

gherrit-pr-id: I1c2d4a54bc1d73d3079d043c2bc393a8967f44f6

`PtrInner` carries all invariants which are not controlled by type
parameters. Since `PtrInner` does not promise to uphold aliasing,
alignment, or validity, we can move some utility methods to `PtrInner`
which previously were responsible for maintaining invariants orthogonal
to their purpose.

Makes progress on #1892 (still needs to be fixed on v0.8.x)
Closes #1890

gherrit-pr-id: I1c2d4a54bc1d73d3079d043c2bc393a8967f44f6
@joshlf joshlf requested a review from jswrenn February 24, 2025 22:10
@joshlf
Copy link
Member Author

joshlf commented Feb 24, 2025

Backporting #1891

@joshlf joshlf enabled auto-merge February 24, 2025 22:10
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 98.55072% with 6 lines in your changes missing coverage. Please review.

Project coverage is 87.78%. Comparing base (32fdbee) to head (a5cad0e).

Files with missing lines Patch % Lines
src/pointer/inner.rs 98.47% 5 Missing ⚠️
src/pointer/ptr.rs 98.79% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           v0.8.x    #2380      +/-   ##
==========================================
- Coverage   87.82%   87.78%   -0.04%     
==========================================
  Files          16       17       +1     
  Lines        6159     6183      +24     
==========================================
+ Hits         5409     5428      +19     
- Misses        750      755       +5     

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

@joshlf joshlf added this pull request to the merge queue Feb 24, 2025
Merged via the queue into v0.8.x with commit 4cb9a69 Feb 24, 2025
87 checks passed
@joshlf joshlf deleted the v0.8.x-1891 branch February 24, 2025 22:45
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