Skip to content

[Self-Hosting] Preserve span mutability in Stage-A AST_TYPE #718

Closed

Description

@godofecht

Completed

PR #822 merged as da1291e7844934619a00618b703401eb4088d2b2 after being refreshed onto current main and qualified locally.

The merged slice preserves span<T> versus span<mut T> through the Stage-A parser/AST path, emits distinct canonical names span_const_<elem> / span_mut_<elem>, and includes parser/type-name regressions.

Recorded local qualification on #822:

./flow test --tier2 --strict
All 735 tests passed! (Tier 2)

The focused tests/lang/test_parser_span_mutability.flow and tests/lang/test_type_name_port.flow cases are included in that passing run, and the checked-in Stage-A bootstrap was regenerated to fixed-point consistency.

Reference-span sugar (&[T], &mut [T], sized forms) remains separately tracked by #720.

Validation was local-only; no hosted workflow evidence is part of this closure.

Activity

  1. added
    self-hosting
    P1-high
    on Aug 22, 2026
  2. google-labs-jules commented on Aug 23, 2026

    @google-labs-jules
    Contributor

    Jules has failed to create a task. You can try again later by removing and re-adding the 'jules' label.

  3. google-labs-jules commented on Aug 23, 2026

    @google-labs-jules
    Contributor

    Jules has failed to create a task. You can try again later by removing and re-adding the 'jules' label.

  4. godofecht commented on Aug 25, 2026

    @godofecht
    ContributorAuthor

    Progress update (25 Aug 2026, local-validation only): #769 formalizes zero-layout-cost AST_TYPE span mutability metadata; #770 stacks canonical span_const_<elem> / span_mut_<elem> emission; #771 stacks an end-to-end parser contract for span<T> vs span<mut T>. All commits use [skip ci]. The only remaining explicit-span source change is the bounded flowc_parse_type splice documented in #771; no AST layout change is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1-highcompilerself-hosting

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions