-
Notifications
You must be signed in to change notification settings - Fork 23
Update the rustc pin #1391
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
Update the rustc pin #1391
Conversation
Alright, everything is ready! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks you, that's great! 😃
Let's merge!
We need to also test this on libcrux, bertie, and pq11, both of which are somewhat critical right now. Let's please not merge in a rush if the proofs there break.
|
I'm looking at bertie. @maximebuyse can you try this version of hax on PQ11? I don't really know what branch to test there. |
I have a few problems. One is that some names have changed in the core lib. I can push fixes for that. But there is something else which is more concerning: mod Err1 {
pub struct Error();
}
struct Error();
impl From<Err1::Error> for Error {
fn from(value: Err1::Error) -> Self {
Error()
}
}
fn f(x: Result<i32, Err1::Error>) -> Result<i32, Error> {
Ok(x?)
} Open this code snippet in the playground |
I diffed the THIR json for this example between |
Ah wait, this PR is a week out of date with latest hax, let me update. EDIT: nope, no change. |
This is fixed now, the question marks phase in the engine was relying on a hardcoded impl number which has changed with the rustc pin. With the fix we should be more robust. I also pushed the naming changes for the core lib so everything is good for pq11. I think we can merge! 🥳 |
fix(F*): rename instance ids, following cryspen/hax#1391
This updates the rustc pin to a nightly from a few days ago. I did it like this to avoid the many developments of the attribute handling rework.
Other relevant changes:
TypingMode
rust-lang/types-team#128I'm leaving it as draft while I propagate the change to charon.