Skip to content

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
ehartford merged 3 commits into
mainfrom
fix-switch-table-vals-i64
Sep 24, 2026
Merged

ehartford merged 3 commits into
mainfrom
fix-switch-table-vals-i64

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Main is red at stage2 after merging the enum stack (#1546) and the frontend stack (#1581) — each green alone, red together:

error: wrong argument type in call to 'MirBody.new_switch_table'
 --> src/MirLower.w:3410:48
  = note: parameter 'vals' expects &Vec[i64]
  = note: actual type: Vec[i32]

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) is ok. Battery with audits running.

…riminants are i64 end to end (#1541) and the width check (#1368) now rejects the narrowed table; main was red at stage2
Eric Hartford 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
@ehartford

Copy link
Copy Markdown
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.

@ehartford
ehartford marked this pull request as ready for review September 24, 2026 02:08
@ehartford
ehartford merged commit 52d60d0 into main Sep 24, 2026
@ehartford
ehartford deleted the fix-switch-table-vals-i64 branch September 24, 2026 16:56
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.

1 participant