Skip to content

Preserve interpolation metadata across type copies#10230

Merged
rtfeldman merged 2 commits into
mainfrom
issue-10204-imported-interpolation-metadata
Jul 19, 2026
Merged

Preserve interpolation metadata across type copies#10230
rtfeldman merged 2 commits into
mainfrom
issue-10204-imported-interpolation-metadata

Conversation

@rtfeldman

Copy link
Copy Markdown
Contributor

Static dispatch constraints for string interpolation kept their part metadata in Check-local side tables, so importing a function with an interpolation lost the metadata needed when defaulting from_interpolation to Str. This moves the interpolation payload into the type store as non-identity constraint metadata, remaps it during instantiation and import copy, and keeps canonical type keys and constraint equivalence based only on semantic constraint identity. Fixes #10204.

@rtfeldman
rtfeldman marked this pull request as ready for review July 19, 2026 17:14
@rtfeldman
rtfeldman merged commit 9c8abf4 into main Jul 19, 2026
8 of 12 checks passed
@rtfeldman
rtfeldman deleted the issue-10204-imported-interpolation-metadata branch July 19, 2026 17:15
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.

Panic: builtin Str interpolation constraint had no metadata

1 participant