Skip to content

#3061 slice 4: fix-ceremony rewrites the census's typed patterns - #3075

Merged
ehartford merged 1 commit into
fix-ceremony-3from
fix-ceremony-4
Nov 7, 2026
Merged

ehartford merged 1 commit into
fix-ceremony-3from
fix-ceremony-4

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

#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 &x at a &T parameter goes (§3.8), Some(x) under an Option demand becomes x (D103). test/internals/ceremony_fix_typed_test.w pins 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.

`.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).
@ehartford
ehartford added this pull request to stack #3076 November 7, 2026 20:17
@ehartford
ehartford marked this pull request as ready for review November 7, 2026 20:37
@ehartford
ehartford merged commit 961cd90 into main Nov 7, 2026
@ehartford
ehartford deleted the fix-ceremony-4 branch November 7, 2026 20:37
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