Skip to content

Conversation

@joshlf
Copy link
Member

@joshlf joshlf commented Mar 28, 2025

@codecov-commenter
Copy link

codecov-commenter commented Mar 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.18%. Comparing base (2115a6d) to head (dc675e6).

Additional details and impacted files
@@                            Coverage Diff                             @@
##           I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b    #2469   +/-   ##
==========================================================================
  Coverage                                      90.18%   90.18%           
==========================================================================
  Files                                             20       20           
  Lines                                           7986     7986           
==========================================================================
  Hits                                            7202     7202           
  Misses                                           784      784           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch 2 times, most recently from 2890b20 to cab910e Compare March 28, 2025 19:41
@joshlf joshlf force-pushed the Ib4bc62202e0b3b09d155333b525087f7aa8f02c2 branch from 85b4437 to 522d450 Compare March 28, 2025 19:41
@joshlf joshlf changed the base branch from Ib4bc62202e0b3b09d155333b525087f7aa8f02c2 to I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b March 28, 2025 19:41
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch from 9ab2be6 to c1009fc Compare March 28, 2025 19:43
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch 2 times, most recently from 09ffdb2 to dbcd3c0 Compare March 28, 2025 23:11
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch from c1009fc to 6338896 Compare March 28, 2025 23:11
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch from dbcd3c0 to dc675e6 Compare March 28, 2025 23:31
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch from 6338896 to 2115a6d Compare March 28, 2025 23:31
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch from dc675e6 to eec3ec9 Compare April 7, 2025 22:33
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch from 2115a6d to 7b9a12f Compare April 7, 2025 22:33
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch from eec3ec9 to bafb400 Compare April 7, 2025 23:35
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch from 7b9a12f to baf0a15 Compare April 7, 2025 23:35
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch from baf0a15 to 9ac6a2d Compare June 3, 2025 19:13
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch from bafb400 to 0386dc9 Compare June 3, 2025 19:13
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch from 9ac6a2d to 7733216 Compare June 3, 2025 19:53
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch from 0386dc9 to 8793f97 Compare June 3, 2025 19:53
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch from 7733216 to cd6fc04 Compare June 4, 2025 15:40
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch from 8793f97 to 491b473 Compare June 4, 2025 15:40
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch from 491b473 to 0e678af Compare June 4, 2025 16:01
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch 2 times, most recently from 674049b to bd549b9 Compare June 4, 2025 16:39
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch 2 times, most recently from ed98af3 to f9e4d83 Compare June 4, 2025 18:28
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch from bd549b9 to c9af062 Compare June 4, 2025 18:28
joshlf and others added 2 commits June 4, 2025 15:37
This requires us to generalize our prior support for transmuting between
unsized types. In particular, we previously used the `SizeEq` trait to
denote that two types have equal sizes in the face of a cast operation
(in particular, that `*const T as *const U` preserves referent size). In
this commit, we add support for metadata fix-up, which means that we
support casts for which `*const T as *const U` does *not* preserve
referent size. Instead, we compute an affine function at compile time
and apply it at runtime - computing the destination type's metadata as a
function of the source metadata, `dst_meta = A + src_meta * B`. `A` and
`B` are computed at compile time.

We generalize `SizeEq` to permit its `cast_from_raw` method to perform a
runtime metadata fix-up operation.

Makes progress on #1817

Co-authored-by: Jack Wrenn <[email protected]>
gherrit-pr-id: I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b
gherrit-pr-id: I32ffeea758b53073aa461ab41c217e5b8f0bc4e4
@joshlf joshlf force-pushed the I32ffeea758b53073aa461ab41c217e5b8f0bc4e4 branch from f9e4d83 to a7bb504 Compare June 4, 2025 19:41
@joshlf joshlf force-pushed the I6c793a9620ad75bdc0d26ab7c7cd1a0c7bef1b8b branch 6 times, most recently from 5a377c4 to 7a0c2de Compare June 6, 2025 17:25
@joshlf joshlf closed this Jun 6, 2025
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