-
Notifications
You must be signed in to change notification settings - Fork 16
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
error[E9999]: Cannot handle error Unimplemented
#305
Comments
Do you happen to have a small diff that caused the error? Otherwise, do you think you could come up with a small version of a newtype that triggers this bug? cc @W95Psp since this is a hax error. |
That's similar to hacspec/hax#310. Running Thus it seems like it's a query that hax doesn't do but that charon does, so it's harder to reproduce on my side 🤔 |
Yes the diff that caused the error was this:
I tried to minimize but it's not obvious how to reproduce this since of course a single "newtype" pattern in isolation does not cause issues. @W95Psp are you able to run charon to witness the issue on your end? |
Oh, I think the error here is that the code is not valid rust: you're missing the If that's the issue, it's a know issue (#306): sometimes we try to process code before rustc has fully checked it, which triggers errors like that. I have plans for that but that's not straightforward. |
You are absolutely correct. My bad -- I thought that running charon was the same as running cargo build, and it didn't cross my mind that the panic I was seeing was caused by a legitimate error. |
Your expectation is entirely legitimate, hopefully we'll get there soon enough |
This is the branch I'm using:
After I started using the "newtype" pattern in a couple places, I started triggering bugs in hax-frontend:
Thanks
The text was updated successfully, but these errors were encountered: