Repository navigation
Main reds from #1325 merging early: generic arity message keeps its lead; no_std --alloc async fixtures pin the tier message - #1340
Merged
Conversation
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.
This was referenced Sep 22, 2026
Contributor
Author
|
Battery (seed-driven, b31b262): build ok, :fixpoint ok, :test red only on |
ehartford
marked this pull request as ready for review
September 22, 2026 21:39
This was referenced Sep 22, 2026
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.
#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:
print;err_unit_elision_unconstrained_generic.wexpectswrong argument countanderr_output_multiple_args.wexpectsexpects 1 argument(s), found 2. The message now satisfies both, e.g.wrong argument count: function 'id' expects 1 argument(s), found 0. No expectation edited.err_no_std_alloc_async_leak.w/err_no_std_await_leak.wreturn to their original tier-correct expectation (requires std/fiber runtime) from afdcb48 ('Close no_std tier leaks'). 2abfa18 had rewritten them to the wording the tier leak produced; print[T: Display](v: &T): any Display value prints; a mixed-arm match's fix-it is the f-string (§18.2, D55) #1325's pre-sema tier-flags commit closes that leak. The spec's no_std table requires std forasync fn, and--allocstays in the no_std tier.Battery: queued.