Repository navigation
#3061 slice 4: fix-ceremony rewrites the census's typed patterns - #3075
Merged
Merged
Conversation
`.clone()` on a str goes (D111: a str is a value), an explicit `&x` at a `&T` parameter goes (§3.8 auto-references), and `Some(x)` where an Option is demanded becomes `x` (D103: the demand converts). The sites are the ones the ceremony census already records (ceremony_sites, patterns 1–3); they gain their file. test/internals/ceremony_fix_typed_test.w pins the three rewrites and the two shapes that stay (a List's clone, `&x` at a `T` parameter).
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.
#3061, slice 4. The three typed census patterns rewrite on the sites the census already records (
ceremony_sites):.clone()on a str goes (D111), an explicit&xat a&Tparameter goes (§3.8),Some(x)under an Option demand becomesx(D103).test/internals/ceremony_fix_typed_test.wpins the three rewrites and the two shapes that stay. Stacked on #3074. With this the rewriter covers every census pattern that has a fact behind it; the sweeps (#2939, #2942) run through it next, each its own PR.