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

arithmetic: Clarify memory safety aspects of AliasingSlices & rename to AliasingSlices3 #2291

Merged
merged 4 commits into from
Jan 26, 2025

Conversation

briansmith
Copy link
Owner

See each individual commit for details.

@briansmith briansmith self-assigned this Jan 26, 2025
Copy link

codecov bot commented Jan 26, 2025

Codecov Report

Attention: Patch coverage is 84.61538% with 4 lines in your changes missing coverage. Please review.

Project coverage is 96.74%. Comparing base (63dc1e5) to head (e109dc3).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
src/arithmetic/ffi.rs 55.55% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2291      +/-   ##
==========================================
- Coverage   96.76%   96.74%   -0.02%     
==========================================
  Files         173      173              
  Lines       20872    20885      +13     
  Branches      487      487              
==========================================
+ Hits        20196    20205       +9     
- Misses        575      578       +3     
- Partials      101      102       +1     

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

Prepare to introduce an `AliasingSlices2` that works similarly but
with one less argument.
Rename `AliasingSlices3` method to clarify how the dangling pointer
aspect. Add a new helper to it that helps users avoid dangling
pointers.
@briansmith briansmith merged commit 66882b3 into main Jan 26, 2025
167 of 169 checks passed
@briansmith briansmith deleted the b/aliasing-slices-3 branch January 26, 2025 19:06
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.

1 participant