Skip to content

docs: add slice-capable gen-rust design note - #13181

Open
gHashTag wants to merge 2 commits into
masterfrom
lane/gen-rust-slice-capable
Open

gHashTag wants to merge 2 commits into
masterfrom
lane/gen-rust-slice-capable

Conversation

@gHashTag

@gHashTag gHashTag commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a bounded design note and test matrix for slice-capable gen-rust lowering.

Defines the initial supported subset:

  • []const T -> &[T]
  • []T out-parameters -> &mut [T]
  • -> []bool -> Vec
  • function parameters -> impl Fn / impl FnMut

Establishes lowering rules, an eight-case test matrix, byte-identical
regression requirements, and acceptance criteria. No compiler behavior
is changed in this PR.


Note

Low Risk
Documentation-only; no runtime, compiler, or cache-format changes.

Overview
Adds docs/gen-rust-slice-capable.md, a design note for future t27c gen-rust work (no compiler changes in this PR).

The doc spells out target lowering for generic slices ([]const T → &[T], []T → &mut [T], []bool returns → Vec<bool>), function-typed params → impl Fn / impl FnMut, and keeps today's explicit-reject policy for unsupported constructs. It includes an 8-case test matrix, acceptance criteria (rustc/cargo parity with Zig oracle, byte-identical regression), and how this would unblock retry-suppression activation by avoiding a hand-written enum↔bytes adapter.

Reviewed by Cursor Bugbot for commit bf34291. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-11-04 18:00:48 UTC

Summary

Status Count
Total Open PRs 30
PRs with Failing Checks 28
PRs with All Checks Green 2
READY 2
FAILING 28
PENDING 0
NO CHECKS YET 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e75b498e5e79 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

This was referenced Nov 4, 2026
This was referenced Nov 10, 2026

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