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

Always use manual impl of KnownLayout for Unalign #1476

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

jswrenn
Copy link
Collaborator

@jswrenn jswrenn commented Jul 1, 2024

We should not use derive(KnownLayout) on Unalign, because the derive is not smart enough to realize that Unalign<T> is always sized and thus emits a KnownLayout impl bounded on T: KnownLayout. This is overly restrictive.

Fixes #1162

We should not use `derive(KnownLayout)` on `Unalign`, because the
derive is not smart enough to realize that `Unalign<T>` is always
sized and thus emits a `KnownLayout` impl bounded on
`T: KnownLayout.` This is overly restrictive.

Fixes #1162
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.34%. Comparing base (8151bdb) to head (4eae89e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1476   +/-   ##
=======================================
  Coverage   87.34%   87.34%           
=======================================
  Files          15       15           
  Lines        5303     5303           
=======================================
  Hits         4632     4632           
  Misses        671      671           

☔ 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 Jul 1, 2024
Merged via the queue into main with commit 0115fd7 Jul 1, 2024
78 checks passed
@joshlf joshlf deleted the knownlayout-unalign branch July 1, 2024 20:32
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.

Standardize whether T: KnownLayout requires T's fields to be KnownLayout
3 participants