Skip to content

fix sema batch 2121 2142 2165 - #2172

Merged
ehartford merged 1 commit into
fix-2118-emit-entryfrom
fix-sema-batch-2121-2142-2165
Oct 5, 2026
Merged

ehartford merged 1 commit into
fix-2118-emit-entryfrom
fix-sema-batch-2121-2142-2165

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Stack created with GitHub Stacks CLI • Give Feedback 💬

…lengths; pipelines over views; collect drops what it replaces (#2121, #2142, #2165, #2118)

D93: the type a use demanded of a literal binding was carried to the
second check as a type id. A type first made at the use (Vec[f64]) has no
such id there, so 'let xs = [1.5, 2.5]' with 'xs.iter()' was a type
mismatch in binding. The decision is now written as the type's structure
over types that exist before the first such binding, and rebuilt.

#2121: the length of [T; N] is an integer literal or a constant
expression (§4.3a). The parser keeps a non-literal length as an
expression; Sema evaluates it once and writes it into the type node. The
names of the module's constants are known before its types are collected.

#2142: of two tuple literals compared, the one a bare variant left open
takes the other's type; position's predicate takes the element; a view of
a view of a str compares as the str; sum and product over views of a
number yield the number. sum over f64 emitted an integer add.

#2165: collect into a hash set or map dropped neither the duplicate key
nor the value it replaced, and into a B-tree set or map not the entry it
replaced. Debug allocator: leak count 6 before, 0 after
(test/debug_alloc/da_2165_collect_duplicate_key.w).

#2118: a module this compiler carries only as a bundle object says so
when a compilation needs its source.
@ehartford
ehartford added this pull request to stack #2175 October 5, 2026 13:47
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery GREEN on the stack top c26da76, driven by the pinned seed (gate 1708 s, uat 30 s, battery-checks 556 s); green recorded. The stack top also builds with the pinned seed on linux-x86_64 and windows-x86_64, where the new tests pass.

@ehartford
ehartford marked this pull request as ready for review October 5, 2026 14:26
@ehartford
ehartford merged commit 2971746 into main Oct 5, 2026
@ehartford
ehartford deleted the fix-sema-batch-2121-2142-2165 branch October 5, 2026 14:27
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