Repository navigation
selfhost: preserve explicit span mutability end to end - #822
Conversation
6210952 to
6882c19
Compare
|
Refreshed against current Head:
Two things had to be fixed to get there. The new test is the first thing in the tree to import
|
010ae56 to
b135abd
Compare
|
Update after #828 landed. Head: The |
b135abd to
274f93a
Compare
|
Requalified on Marking ready for review. |
`rhs` in the pipeline loop and `name_src` in the call builder are both assigned after their declaration, so under `--strict` the type checker rejects them. They are reachable only through a test that imports `compiler/src/parser.flow`, and until this branch added one, nothing did. The bootstrap C is regenerated so `compiler/bootstrap/flowc_stage_a.c` matches a flowc emit of `compiler/src` again. Tier 2 strict: all 735 tests pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01H7f6FndutYaViuhto1UGA8
274f93a to
87781f0
Compare
Completes the explicit
span<T>/span<mut T>work for #718.The zero-layout-cost
AST_TYPE.cmetadata and checked accessors are already present onmain. This PR restores the remaining end-to-end slices:flowc_type_name_intoemits byte-exact production namesspan_const_<elem>/span_mut_<elem>, the type-name tests cover both forms, andflowc_parse_typepreserves a consumedmutbit only when the outer type identifier is exactlyspan.The parser splice is deliberately bounded: arbitrary generic applications still consume
mutexactly as before and do not receive span metadata.AstNodelayout is unchanged.Adds the recovered end-to-end parser contract proving real parameters
span<i32>andspan<mut i32>survive parsing differently and normalize to the expected canonical names.Maintenance audit 2026-09-02: current
mainiscb1b7f63ead4446c3f8c8c40351c0d4f53316d56; this branch is 4 commits ahead and 10 behind its merge based65c3e59…. Currentmainstill contains the explicittype_name.flowfallback saying span mutability is not recorded, so this work has not been superseded. #718 has been reopened accordingly.Exact next action: refresh this branch against current
mainlocally, resolve drift, runtests/lang/test_parser_span_mutability.flowandtests/lang/test_type_name_port.flowplus the local bootstrap/fixed-point qualification required by generated compiler changes, then record the refreshed head SHA/results before marking ready or merging. Do not use hosted workflows.Reference sugar (
&[T],&mut [T], sized forms) remains separately tracked by #720.Related: #674 #677 #718 #720 #769 #770 #771