Skip to content

correct generation of unused default functions#990

Merged
ahl merged 4 commits intomainfrom
extraneous-defaults
Mar 3, 2026
Merged

correct generation of unused default functions#990
ahl merged 4 commits intomainfrom
extraneous-defaults

Conversation

@ahl
Copy link
Collaborator

@ahl ahl commented Mar 3, 2026

Closes #976

In short, we try to generate some common default functions when we can make use of them, but when there's a newtype wrapper we got confused and thought that we could use one of these simply because we could for its inner type. Instead we need to both validate that the inner type make sense with the default, but always know that we need to generate a specific default function for the newtype Type.

@ahl ahl merged commit 11fc5f7 into main Mar 3, 2026
4 checks passed
@ahl ahl deleted the extraneous-defaults branch March 3, 2026 06:16
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.

Unused default functions may be generated

1 participant