-
Notifications
You must be signed in to change notification settings - Fork 85
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
buggy behavior for tuple clone #1312
Comments
Update: the reason for the current behavior has to do with this code in fn_call_to_vir, which is meant to get the static resolution of a trait call:
For a tuple call, the InstanceDef actually has quite a lot of variants that are unhandled: https://doc.rust-lang.org/1.76.0/nightly-rustc/rustc_middle/ty/enum.InstanceDef.html This leads to inconsistent behaviors:
Both cases ought to have the same behavior, but I wonder what it should be? It definitely shouldn't be silently ignored, since that's confusing, but perhaps it should be a warning instead of a hard error. |
This currently fails verification:
This should be supported - but there's also a separate problem. This should fail with an error that
tuple2::clone
is not supported or some such. For any type other than tuples, we would give such an error. For some reason, Verus isn't doing this check. We should make sure that Verus correctly does this check, including for traits other than Clone.The text was updated successfully, but these errors were encountered: