Pin the diagnostics corpus to --tier=static-only

Its programs pin today's refusals; localized failure turns several of them
into checked dynamic slots in the default mode. Under static-only every
snapshot stays byte-identical, which is the stage's proof that the switch
restores the refusals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Malte Ubl
2026-10-25 18:57:21 -07:00
co-authored by Claude Opus 5.5
parent 6a2c9eca21
commit cd5607493e
+8 -1
View File
@@ -39,7 +39,14 @@ describe(`diagnostics corpus (${files.length} programs)`, () => {
if (name.startsWith("checker-panic-")) process.env["SCRIPTC_CHECKER"] = "tsgo";
let result: Awaited<ReturnType<typeof compile>>;
try {
result = await compile(file, { outPath: join(outDir, "never"), outDir });
// --tier=static-only: these programs pin today's refusals, which
// localized failure otherwise turns into checked dynamic slots
// (the snapshots double as its proof that static-only keeps them).
result = await compile(file, {
outPath: join(outDir, "never"),
outDir,
tier: "static-only",
});
} finally {
if (checker === undefined) delete process.env["SCRIPTC_CHECKER"];
else process.env["SCRIPTC_CHECKER"] = checker;