Repository navigation
#3016, #3032, #2946, #2976, #2949, #3051, #3005, #3001, #3017, #2521: the day's burn-down - #3056
Merged
Merged
Conversation
… the day's burn-down Each with a failing-first fixture under out/bootstrap/bin/with-stage1. - #3016 (ComptimeEval.eval_variant_constructor_call): the payload start was taken before the arguments were evaluated and each value pushed as it came, so a nested payload variant's own extras sat between the start and the value: `AppError.Db(DbError.NotFound("users", "42"))` folded to `.Db("users")` and matched nothing. Proof: lldb on ct_build_value_tree / comptime_value_enum (the inner call folds first, then eval_static_type_method_call → eval_variant_constructor_call for the outer). Every payload is evaluated first, as eval_variant_shorthand already did; the #3016 bail-out in ct_try_fold_type_call is gone. - #3032 (ComptimeValue): the side count `text_refs` is retired; a str is a counted buffer (D111/D120), so a share is a copy (with_str_own_view: one more holder, counted under the pinned seed too) and the value's drop is its fields'. The nine boundary `.clone()`s stay until a post-D111 seed. - #2946 (SemaCheck comparison branch): a bare `None` beside an Option takes the peer's type as `.None` does; a bare `None` on the right is typed after the left (a variant-call left used to check the right first); `None` beside `None` is refused with a diagnostic instead of reaching MIR. - #2976 (CodegenDispatch RK_DISCRIMINANT): an unprojected place's type is its local's (mir_local_llvm_type: Sema's type when no alloca named it), so a module global's discriminant in main has one. - #3051 (SemaCheck.check_call): a method call's receiver is checked without the call's outer demand (both receiver sites). - #2949: a pinned fixture for `comptime match Target.os` / `Target.arch` under `use std.os.Target`; the §17.5 example writes no import, which the PR flags for Eric. - #3005 (D193, delegated): `{x}` over a type with a program-written `impl Display` calls its `to_str` with a borrow (Sema binds it by type, display_fmt_*; MirLower.lower_display_text_op, also under a width spec); `error` types keep their generated form; the no-display error names both remedies; the sig check's message names `{}` or `:?`. §15.4 reworded. - #3001 (D192, delegated): `..`/`..=` are a level of their own above `|>` and `??` (Parser.infix_op; levels 8–13 shift up; the unsafe prefix parses at 15); a `..` before `]` is left to the slice path and a parsed range in a subscript is the slice. §9.9 and §30 tables, D192. - #3017 (build/retention.w require-last-green): when the release binary is the one last-green recorded but the manifest's source_identity is not HEAD's, the install is refused naming `src/main build`. - #2521 (tools/verdict.w): a `with uat` log closes on its summary line, the FAIL count decides its rc, and each failed scenario is a red. Spec changelog v7.38; decision log D192, D193.
Contributor
Author
|
Battery green on |
This was referenced Nov 7, 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.
The day's burn-down of the "today" bugs, each investigated to its exact line, reproduced, fixed, and pinned by a failing-first fixture under
out/bootstrap/bin/with-stage1.MISMATCHon a folded nested payload variantComptimeEvaluator.eval_variant_constructor_calltookpayload_startbefore evaluating its arguments and pushed each as it came, so a nested variant's extras sat between the start and the value (.Db("users")). lldb: the inner call folds first, the outer goeseval_static_type_method_call → eval_variant_constructor_call.eval_variant_shorthanddid); aconstpins it. A variant constructor call written in a body is no longer folded at all: it is already its value, and the fold loses the enum's name where no binding gives one (let a = G.V(3), behav_1506) and runs before a later-declared enum's body is typed (behav_1430, which crashed with the fold on).behav_3016_folded_nested_payload_variant_matches.wComptimeValue.text_refsdouble-counts a strtext_refs, its helper and the Drop impl are gone; a share is a counted copy (with_str_own_view, which counts under the pinned seed too). The nine boundary.clone()s stay until a post-D111 seed.--debug-alloc: 0 leaks, no double freeNone < Some(1).Noneand a variant call but not a bareNoneident; a variant-call left checked the right first and met the bareNonewith no peer.Noneis peered like.None; on the right it is typed after the left;NonebesideNoneis refused with a diagnostic. In MirLower, a bare variant name used as a place (the derivedeq's&Selfargument innone == None) materializes into a statement temp as.Nonedoes; it used to be unsupported, which the first battery surfaced inbehav_2137,behav_cstr_from_ptr_to_ownedandda_2161.behav_2946_bare_none_compares_with_option.w,err_2946_none_beside_none.wdiscriminant rvalue 0: place 0 has no typemir_place_projected_typeanswers only projected places; the fallback readmir_local_types, which has no entry for a module global never allocaed.mir_local_llvm_type(Sema's type for the local).behav_2976_option_global_discriminant_in_main.wcomptime match Target.osuse std.os.Target; the issue'suse std.sysinfo.Targetnames the wrong module, and the §17.5 example writes no import (flagged below).behav_2949_comptime_match_target_os.wcheck_callchecked the method receiver withhas_expected_typestill set from theletannotation.behav_3051_literal_receiver_under_outer_demand.wf"{p}"refuses aDisplayimpl{x}over a type with a program-writtenimpl Displaycalls itsto_strwith a borrow (Sema binds by type;MirLower.lower_display_text_op, also under a width spec);errortypes keep their generated form; the refusal names both remedies. §15.4 reworded, changelog v7.38.behav_3005_fstring_display_impl.w,err_3005_struct_without_display.w0..3 |> map(f)parses the pipe inside the range...../..=are a level above|>and??, below|(infix_op; levels 8–13 shift up; theunsafeprefix parses at 15); a..before]is left to the slice path and a parsed range in a subscript is the slice. §9.9 and §30 tables.behav_3001_range_binds_above_pipe_and_default.w:install-userinstalls a stale binaryrequire-last-greenaccepted a binary that matchedlast-green.json, but nothing tied either to HEAD's green: after a:sources-greenbattery both are yesterday's.source_identityis not HEAD's, refuse namingsrc/main build.build.wchecked by the gate)verdict.wreports a finisheduat.logas OPENrc=line.uat: N scenarios:summary closes it, its FAIL count is the rc, each failed scenario is a red.rc=1 RED raylib_spiral,rc=0 greenNot in this PR, flagged for Eric.
IndexSpecas the spec's enum): not small. Codegen lays the seven-field record out by hand (mir_build_multi_index_specs_ref), so the enum needs MirLower to build realIndexSpecvalues and codegen to drop the hand layout, plus the std declaration and both fixtures. Next layer.Target.osexample writes nouse std.os.Target; the compiler requires the import (§18.1). Either the example gains the line orTargetbecomes ambient; the fixture uses the import.Iterate tier: all new fixtures plus
test/hello.w,behav_2950_comptime_payload_variant.w,behav_d97_option_none_first.w,behav_3047_multi_index_d140_no_import.wpass under stage1;check src/main.wclean; ceremony census diff ok.