You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
audit:all is red on the compiler's own source: 35 resolution violations and 5 frozen-phase re-entries #3423
with analyze src/main.w audit:all on main reports violations in the compiler itself. No gate runs it (it takes about four minutes), so they accumulated. audit:mir was made clean in #3422 and the shift-count class (36 false violations) is fixed in the PR that references this issue. What is left, measured with a dev build (corpora from source):
Resolution: an expression lowered to an operand of another type (35)
MIR
Sema
node
count
example
&i32
i32
field access
24
src/MirLower.w:2884: if success: self.sema.syms.some else: self.sema.syms.none
&i64
i64
field access
4
src/Codegen.w:7684: if some: self.option_some_tag else: self.option_none_tag
i32
i64
unary
4
Memo.get instances, reported at src/main.w:78:75 (a wrong location too)
&str
str
field access
2
src/CodegenDispatch.w:18208: a tail self.current_decl_source_file
The &T rows are one shape: a field read through self in a value-position arm or tail yields a view that is materialized at the join; the lowering records the view against the node and Sema recorded no adjustment for it (D22 contextual copy). Either Sema records the adjustment, or the lowering records after it materializes; the audit must not learn to accept &T for T in general.
#3424 and #3425 merged: the shift-count class (36) and the copy-out join arm class (30) were both bookkeeping, fixed where the lowering records an expression's operand; the audit rule is unchanged. audit:all on src/main.w is at 10.
1, a pipeline (src/compiler/Compilation.w:1610, embedded_bundle_prefixes() |> any(…)): MIR ListIter[str], Sema List[str]; the into-iterator conversion is not a recorded adjustment.
5 frozen-phase re-entries: codegen calls Sema.sig_is_drop_body, Sema.type_level_arg_in_body (three callers) and Sema.type_carries_user_drop, which are declared mut fn.
Activity
audit:resolution: a leaf arm of a copy-out join is recorded at its vi…
ehartford commentedon Nov 18, 2026
#3424 and #3425 merged: the shift-count class (36) and the copy-out join arm class (30) were both bookkeeping, fixed where the lowering records an expression's operand; the audit rule is unchanged.
audit:allonsrc/main.wis at 10.What is left:
Memo.getinstances (lib/std/memo.w,Some(*v); reported atsrc/main.w:78:75, which is also a wrong location): the generic method's*vnode carries the type of another instantiation when this one is lowered (MIR i32, Sema i64).typed_expr_typesis per node, not per instance; this is the weakness typed_expr_types per-arm recording has no completeness or safety contract (6 gap instances; 1 unsafe insert) #767 describes.src/compiler/Compilation.w:1610,embedded_bundle_prefixes() |> any(…)): MIRListIter[str], SemaList[str]; the into-iterator conversion is not a recorded adjustment.Sema.sig_is_drop_body,Sema.type_level_arg_in_body(three callers) andSema.type_carries_user_drop, which are declaredmut fn.Codegen reads Sema, it does not re-enter it: sig_is_drop_body and typ…
audit:all is clean on the compiler's own source, and the battery keep…