Repository navigation
audit:resolution: a copy-out join's leaf arm is recorded at its view type (part of #3423) - #3425
Merged
Merged
Conversation
…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)
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.
An unannotated
letbound to anifwhose arms read a field throughselfcopies 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:allonsrc/main.wgoes from 40 violations to 10.Battery green on the branch tip;
:release-checksgreen.