Skip to content

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
@jswrenn jswrenn force-pushed the knownlayout-unalign branch from 7c74d19 to 4eae89e Compare July 1, 2024 19:57
@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
@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