Skip to content

The corpus test programs re-promoted under D155/D156 (the pre-D155 alias block displaced std.libc's c_char on u8 hosts) - #2601

Merged
ehartford merged 2 commits into
mainfrom
corpus-tests-d155
Oct 24, 2026
Merged

ehartford merged 2 commits into
mainfrom
corpus-tests-d155

Conversation

@ehartford

@ehartford ehartford commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Re-promotes the test programs under test/corpora/{c_algorithms,stc,mlib} (WITH_CORPUS_PROMOTE=ruling:D155), which #2596 left out: they still carried the pre-D155 alias block (pub type c_char = i8, pub type c_int = i32, ...).

Found on the linux-aarch64 seed leg: the programs are assembled under lib/std/engines/<corpus>_testing, a std-tier path, and std modules read each other's declarations, so std.libc resolved c_char to the test program's i8 alias while the runtime interface spelled the target's u8. Every std.libc wrapper then failed MIR validation (use rvalue type is incompatible with assign destination in realpath). On i8 hosts the displacement was invisible. A fresh migration never emits the block (the -fresh lanes were green); the promoted programs now match it.

Battery: GREEN on 920de0e (seed nightly-20261024-local-1-c1ea1de114eb; the first run was red only on corpus-integrity, fixed by the full c_algorithms and stc promotes whose stamps now cover the test programs).

Eric Hartford added 2 commits October 24, 2026 10:39
…MOTE=ruling:D155)

The promoted programs under test/corpora/{c_algorithms,stc,mlib} were left out of #2596's re-promotion and still carried the pre-D155 alias block (`pub type c_char = i8`, `c_int = i32`, ...). Assembled under lib/std/engines/<x>_testing they are std-tier modules, so std.libc read their `c_char` as i8 while the runtime interface spelled the target's u8: on linux-aarch64 every std.libc wrapper failed MIR validation (realpath first; the rung compiler has no strict pointer rule, so Sema was silent). A fresh migration never emits the block; the promoted programs now match it: fixed widths, `c_char` symbolic, the data model recorded.
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