Repository navigation
MIR: switch-table values are Vec[i64] at the three sites that still built Vec[i32]; main red at stage2 after #1546 + #1581 - #1596
Merged
Conversation
added 2 commits
September 23, 2026 20:29
… match — the seed parsed the flush arms by accident; §29.13 (#1391) rejects them
…ec[i64] — the internals tests compile this file, src/main.w does not
Contributor
Author
|
Battery green at 6adee4c (pinned seed, cold c_import cache): build, :fixpoint, :drop-audit, :move-audit, :test, :test-green, :last-green all rc=0. The first run's :test caught a fourth site (MirValidationTests.w:548, compiled only by the internals tests). Merging: main is red without it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main is red at
stage2after merging the enum stack (#1546) and the frontend stack (#1581) — each green alone, red together:enum_variant_discriminant_for_typereturnsi64.MirBody.new_switch_table(vals, targets)sites (MirLower.w:3410,:3533,:9530) still declaredvals: Vec[i32]against the&Vec[i64]parameter — accepted by the seed (aVec[i32]read asVec[i64]is the exact wrong-code Sema: an aggregate whose elements differ in representation is a type error at calls, returns, assignments, fields, payloads and sequence literals, never a codegen failure or a silent misread (#1368) #1579 exists to catch; the enum-match site also narrowed an i64 discriminant into i32), rejected by the new stage1:Fix: the three declarations become
Vec[i64], matching the other eight sites.out/bootstrap/bin/with-stage1 check src/main.w(the tree's own stage1) isok. Battery with audits running.