Repository navigation
Conversation
added 4 commits
November 11, 2026 01:27
…me evaluator A constant's initializer is evaluated before Sema checks its literal, so eval_array's node type was 0 and the literal stayed CV_ARRAY: `.len()` on a `&List` parameter was "not comptime-evaluable yet". The literal is a list when Sema typed it one, when the site's demand (an annotation) is one, and an array argument becomes the list its parameter's type says. Evidence: lldb at ComptimeEval.eval_array showed type_id = 0 for the argument literal; test/behavior/behav_2760_comptime_list_literal_argument.w.
…ue; an empty [] arm takes the other arm's type; a pin for a global str returned by name #3057: MirLower gave a bare None the reference's type when the other operand was a view (TY_REF), so it lowered as a null and LLVM refused `icmp { i32, [1 x i64] }, i32 0`; audit:resolution named the operand (MIR i32, Sema Option[i64]). The None is the viewed Option's. #3060 (§4.3c rule 1): an arm that is a bare [] waits for its first use; beside another arm that use is the join. #3086 no longer reproduces on main; its repro is pinned.
…air; a borrow of a resource with no contract is refused by name #3113: collect_facade_item_clause gave each callback case's slot the case's written position, but every callback case before it also appends its implied userdata case to the contract's case lists, so from the second callback on the slot named the wrong case and facade_bind_pair_callback_u found no slot ("cannot infer generic method type parameter 'U'"). #3114: a resource with no producer and no drop renders nothing; an item returning a borrow of it generated code naming an undefined BorrowedPart. The facade is refused at the item.
ehartford
marked this pull request as ready for review
November 11, 2026 09:44
This was referenced Nov 11, 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.
Fixes #1021, #1022, #1023, #2760, #3057, #3060, #3113, #3114; pins #3086 (no longer reproduces). Each commit states the exact line and its fixture.
Battery: GREEN on the stack top 0855fa8 (
out/battery/battery.log: rc=0 green; uat 12 pass, 1 skip byplatforms:), one battery for stack #3253, run after rebasing onto main b7a01bd.