Skip to content

Prove the concrete CastUnsized layout gate - #3789

Open
joshlf wants to merge 1 commit into
Gii2clttpvhasvgyirv6rn3tj4ushk3hdfrom
G2cbw3wr4c5plt3vf5yzd54trtag3zhkh
Open

joshlf wants to merge 1 commit into
Gii2clttpvhasvgyirv6rn3tj4ushk3hdfrom
G2cbw3wr4c5plt3vf5yzd54trtag3zhkh

Conversation

@joshlf

@joshlf joshlf commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Move the actual CastUnsized layout decision into a pure helper consumed
by the associated constant. Prove sized equality and accepted DST
alignment, physical offset, and complete size sequences. Check an
independent Rust sizing harness, including overflow and zero-sized tails.
These are conditional numerical guarantees, not pointer-validity proofs.

Validation: pinned extraction; independent golden/live proofs,
required-contract checks and axiom audits; targeted Rust tests.

Agent-authored-by: AI agent acting on joshlf's behalf


Latest Update: v4 — Compare vs v3

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v3 v2 v1 Base
v4 vs v3 vs v2 vs v1 vs Base
v3 vs v2 vs v1 vs Base
v2 vs v1 vs Base
v1 vs Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/G2cbw3wr4c5plt3vf5yzd54trtag3zhkh && git checkout -b pr-G2cbw3wr4c5plt3vf5yzd54trtag3zhkh FETCH_HEAD

Checkout

git fetch origin refs/heads/G2cbw3wr4c5plt3vf5yzd54trtag3zhkh && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/G2cbw3wr4c5plt3vf5yzd54trtag3zhkh && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/G2cbw3wr4c5plt3vf5yzd54trtag3zhkh

Stacked PRs enabled by GHerrit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T00:34:47.170033Z d12c09b PR opened
🔒 Security Review ✅ Completed 2026-10-06T00:35:09.969795Z d12c09b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov-commenter

codecov-commenter commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 47 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.72%. Comparing base (230122f) to head (22d6286).

Files with missing lines Patch % Lines
zerocopy/src/pointer/mod.rs 0.00% 47 Missing ⚠️
Additional details and impacted files
@@                          Coverage Diff                          @@
##           Gii2clttpvhasvgyirv6rn3tj4ushk3hd    #3789      +/-   ##
=====================================================================
- Coverage                              54.32%   53.72%   -0.60%     
=====================================================================
  Files                                     26       26              
  Lines                                   4210     4257      +47     
=====================================================================
  Hits                                    2287     2287              
- Misses                                  1923     1970      +47     

☔ View full report in Codecov by Harness.
📢 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 Gii2clttpvhasvgyirv6rn3tj4ushk3hd branch from 4d1e8e4 to cfa326c Compare October 6, 2026 15:45
@joshlf
joshlf force-pushed the G2cbw3wr4c5plt3vf5yzd54trtag3zhkh branch 2 times, most recently from 00adb6d to f38d378 Compare October 7, 2026 11:10
Move the actual CastUnsized layout decision into a pure helper consumed
by the associated constant. Prove sized equality and accepted DST
alignment, physical offset, and complete size sequences. Check an
independent Rust sizing harness, including overflow and zero-sized tails.
These are conditional numerical guarantees, not pointer-validity proofs.

Validation: pinned extraction; independent golden/live proofs,
required-contract checks and axiom audits; targeted Rust tests.

gherrit-pr-id: G2cbw3wr4c5plt3vf5yzd54trtag3zhkh
Agent-authored-by: AI agent acting on joshlf's behalf
@joshlf
joshlf force-pushed the Gii2clttpvhasvgyirv6rn3tj4ushk3hd branch from 4edd138 to 230122f Compare October 13, 2026 16:33
@joshlf
joshlf force-pushed the G2cbw3wr4c5plt3vf5yzd54trtag3zhkh branch from f38d378 to 22d6286 Compare October 13, 2026 16:33

This branch has not been deployed

No deployments
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