Skip to content

audit:resolution: a copy-out join's leaf arm is recorded at its view type (part of #3423) - #3425

Merged
ehartford merged 1 commit into
mainfrom
audit-view-arms
Nov 18, 2026
Merged

ehartford merged 1 commit into
mainfrom
audit-view-arms

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

An unannotated let bound to an if whose arms read a field through self copies out of a join (D179): each arm is lowered at the view type and the adjustment Sema recorded on the join reads the value. The audit record compared the arm's view with the field's own type and reported "MIR &i32, Sema i32": 30 false violations on the compiler's own source. The lowering now tells the record that a leaf arm of such a join has the adjustment's source type. The audit rule is unchanged.

Test: behav_audit_copy_out_join_arm (fails before, passes after).

Part of #3423: audit:all on src/main.w goes from 40 violations to 10.

Battery green on the branch tip; :release-checks green.

…ew type. An unannotated let bound to an if over fields read through self lowers each arm as a view and the join's adjustment copies out (D179); the record compared the view with the field's own type: 30 false violations on the compiler's own source (#3423)
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