Skip to content

Main reds from #1325 merging early: generic arity message keeps its lead; no_std --alloc async fixtures pin the tier message - #1340

Merged
ehartford merged 2 commits into
mainfrom
print-regression-fixes
Sep 22, 2026
Merged

ehartford merged 2 commits into
mainfrom
print-regression-fixes

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

#1325 merged at 59b27fc, before its battery's three regression fixes were pushed, so main is red on them. These are those two commits, cherry-picked unchanged:

Battery: queued.

Eric Hartford added 2 commits September 22, 2026 16:18
59b27fc reworded the generic check to name the function (`print("x", "y")`
reaches it now that print is generic, and err_output_multiple_args pins
"expects 1 argument(s), found 2"), dropping the wording
err_unit_elision_unconstrained_generic pins ("wrong argument count"). Both
fixtures are main's contracts; the message now carries both:

    wrong argument count: function 'id' expects 1 argument(s), found 0
… again

afdcb48 ("Close no_std tier leaks") authored both fixtures with
"requires std/fiber runtime": require_async_runtime emits that whenever
Sema.no_std is set, and --alloc does not leave the no_std tier (spec
no_std table: `async fn`, `.await` require std). 2abfa18 rewrote them to
"requires the fiber runtime" to match what the compiler then printed, which
was the tier leak 14cc033 closes: under --alloc the prelude's comptime
transform ran a pre-sema with no_std unset, and that Sema's std-tier
wording reached the user before the module checker (no_std = 1) ran. With
the pre-sema and transform Sema carrying the tier flags, all three no_std
async fixtures read the one tier-correct message, as originally authored.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery (seed-driven, b31b262): build ok, :fixpoint ok, :test red only on behav_distinct_compat — main's known red, fixed by #1339 (whose battery shows it green). The three reds this PR targets (err_no_std_alloc_async_leak, err_no_std_await_leak, err_unit_elision_unconstrained_generic) are green here.

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