Repository navigation
Conversation
added 2 commits
October 3, 2026 05:01
…a states the filled list Sema (resolve_named_call_args) now fills the argument list for a positional call that leaves trailing parameters to their defaults, as it did only for named-argument calls; a bare stage `x |> f` gets its list on the pipeline node. MirLower.lower_pipeline lowers that list (the piped value first) through lower_call_with_arg_nodes_recv, which reads the defaults from the node Sema stated them on; a src() default is the stage call's location. Before, the stage call passed only the piped value and the explicit arguments: invalid LLVM (wrong argument count). Also: the piped value is the stage call's first argument only. The in-pipeline flag reached calls among the stage's arguments, so `x |> f(g())` reported g as given one argument too many. D86's precondition forms (lower_precondition_form, #1864) read the same list: their own walk of the declaration's parameter defaults is deleted, and a form call whose operands do not cover the signature is a Sema phase bug.
…ements out correctly `src/main build :contract-view-tests --no-deps` over an out/lib of another compiler generation does not link the native runner (#1797), so the action ran in the driver's evaluator, silently, and failed there: - NK_LET_ELSE (`let (rc, audit) = ...`) was not evaluable; eval_let_pattern binds the pattern, or runs its else. - eval_tuple / eval_array recorded the run's start before evaluating the elements, so an element whose evaluation pushed extra values (a capability call's arguments, a nested aggregate) shifted the run: `(result.rc, ctx.fs().read_text(p))` read back `p`, and every needle check failed. The full invocation (runner) was green throughout. The driver's note on why an action runs in the evaluator is main's build_runner_explain_no_root (#1906), which landed first.
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.
#2024: a pipeline stage drops the callee's default arguments
resolve_named_call_argsnow fills the argument list for a positional call that leaves trailing parameters to their defaults. Before, it did this only for named-argument calls. A bare stagex |> fgets its list on the pipeline node.lower_pipelinelowers the piped value first, then Sema's list, throughlower_call_with_arg_nodes_recv, which now reads the defaults from the node Sema stated them on. Asrc()default is the stage call's location. Before, the stage passed only the piped value and the explicit arguments, which produced invalid LLVM (wrong argument count).x |> f(g())reportedgas given one argument too many. The piped value is now only the stage call's first argument.test/behavior/pipeline_stage_default_args.w. It coversx |> f(),x |> f(a), asrc()default, a bare stage, and a call among the stage's arguments. It failed on the base compiler with invalid LLVM, and before that with the arity error.#2026:
:contract-view-testsred under--no-depsWITH=$PWD/src/main src/main build :contract-view-tests(pinned seed, clean origin/main) andwith build :contract-view-tests(installed compiler, clean origin/main) pass through the native runner.--no-depsover anout/libof another compiler generation. In that case the runner is not linked (Pinned darwin seed (607a52f5, 09-25) predates #1720: it links the native build runner against a stale out/lib, the runner fails, and the driver's silent comptime fallback then fails the build (no stage1 ever ran) #1797), and the action silently ran in the driver's comptime evaluator, which then failed. Two evaluator defects, fixed here:NK_LET_ELSE(let (rc, audit) = ...) was not evaluable.eval_let_patternnow binds the pattern, or runs itselse.eval_tupleandeval_arrayrecorded where their elements start before evaluating them. An element whose evaluation laid out extra values first (a capability call's arguments, a nested aggregate) shifted every element after it.(result.rc, ctx.fs().read_text(p))read backp, so every needle check failed. A wrong result, not a refusal.:contract-view-tests --no-depsover a foreign-generationout/libpasses: 14 fixtures, all agreed, with the note printed. The pinned seed keeps the old evaluator until the next reseed.test/behavior/comptime_let_pattern.wandtest/behavior/comptime_aggregate_nested_elements.w. Both failed on the base compiler.Verification
src/main build :gate: green.:deep-debug-tool-tests: green.:drop-audit: 254 cells, 0 regressions.--validate-allandanalyze audit:allare clean on the pipeline fixture.