Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make trait method resolution more exhaustive, fixes #1312 #1341

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

tjhance
Copy link
Collaborator

@tjhance tjhance commented Nov 13, 2024

Provide an 'unsupported' error for unsupported InstanceDef. This is consistent with the behavior for other unrecognized trait instances.

For example, trying to clone a tuple (which is currently unsupported) will now produce a not-supported error (at present, it will just fail to verify because Verus has no information about what tuple-cloning does; see #1312).

@tjhance tjhance merged commit 893e0c2 into main Dec 3, 2024
11 checks passed
@tjhance tjhance deleted the trait-instance-checks branch December 3, 2024 21: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.

2 participants