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

Enforce Src: FromBytes in try_transmute_mut! #2229

Open
wants to merge 1 commit into
base: v0.8.x
Choose a base branch
from

Conversation

jswrenn
Copy link
Collaborator

@jswrenn jswrenn commented Jan 12, 2025

Ensures that the source reference remains valid after the transmuted (and possibly mutated) destination is dropped.

Fixes #2226

@jswrenn jswrenn requested a review from joshlf January 12, 2025 00:34
@jswrenn jswrenn force-pushed the fix-try_transmute_mut branch from 69ad562 to 2bf3099 Compare January 12, 2025 00:39
@jswrenn
Copy link
Collaborator Author

jswrenn commented Jan 12, 2025

(Have a killer headache tonight; I'll finish this up first thing tomorrow.)

Ensures that the source reference remains valid after the
transmuted (and possibly mutated)  destination is dropped.

Fixes #2226
@jswrenn jswrenn force-pushed the fix-try_transmute_mut branch from 2bf3099 to 4fdd646 Compare January 12, 2025 12:53
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.41%. Comparing base (2c8ef74) to head (4fdd646).
Report is 3 commits behind head on v0.8.x.

Additional details and impacted files
@@            Coverage Diff             @@
##           v0.8.x    #2229      +/-   ##
==========================================
- Coverage   87.42%   87.41%   -0.01%     
==========================================
  Files          16       16              
  Lines        6115     6111       -4     
==========================================
- Hits         5346     5342       -4     
  Misses        769      769              

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

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.

2 participants