Skip to content

Issues batch A: #1021 #1022 #1023 #2760 #3057 #3060 #3086 #3113 #3114 - #3248

Merged
ehartford merged 4 commits into
mainfrom
issues-a
Nov 11, 2026
Merged

ehartford merged 4 commits into
mainfrom
issues-a

Conversation

@ehartford

@ehartford ehartford commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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 by platforms:), one battery for stack #3253, run after rebasing onto main b7a01bd.

Eric Hartford added 4 commits November 11, 2026 01:27
…o CiIR layout comments; a union type declaration renders

Evidence: test/internals/audit_small_fixes_test.w (build_graph_dirname("/")
was "", a union rendered as <unknown type decl>).
…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.
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.

[build] build_graph_dirname("/") returns "" instead of "/" (non-POSIX root)

1 participant