Repository navigation
fix sema batch 2121 2142 2165 - #2172
Merged
Merged
Conversation
…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.
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. |
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.
Stack created with GitHub Stacks CLI • Give Feedback 💬