-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add Self: IntoBytes
bound to TryFromBytes::try_mut*
#2331
Conversation
Passing the edit token off to @joshlf for the |
bbd15f8
to
25768c0
Compare
Done. |
25768c0
to
e1c3f0f
Compare
e1c3f0f
to
67a2af8
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v0.8.x #2331 +/- ##
==========================================
+ Coverage 87.46% 87.48% +0.02%
==========================================
Files 16 16
Lines 6136 6162 +26
==========================================
+ Hits 5367 5391 +24
- Misses 769 771 +2 ☔ View full report in Codecov by Sentry. |
Backporting in #2343 |
Consider that
MaybeUninit<u8>
isTryFromBytes
. If a&mut [u8]
is cast into a&mut MaybeUninit<u8>
, then uninit bytes are written, the shadowed&mut [u8]
's referent will no longer be valid.Makes progress towards #2226 and #1866.