Skip to content

MIR backend: Support nightly-2025-02-16 #2323

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

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

Conversation

RyanGlScott
Copy link
Contributor

This updates SAW and crux-mir-comp in order to support a more recent Rust nightly (nightly-2025-02-16). This piggybacks off of the corresponding mir-json changes in GaloisInc/mir-json#98 (a fix for GaloisInc/mir-json#78), as well as the {crucible,crux}-mir changes in GaloisInc/crucible#1396.

Most of the interesting changes are on the Crucible side in GaloisInc/crucible#1396. The code in SAW that had to change:

  • mirRef_offsetSim no longer takes a TypeRepr argument, so some code in crux-mir-comp had to be adjusted accordingly.
  • In order to look up the DefIds for lang items (e.g., $lang::Option), the DefId lookup logic now takes into account the new lang_items table in a MIR JSON file.

This also updates all of the vendored-in *.linked-mir.json files and crux-mir-comp test cases to use updated line number information.


The commit history in this branch is a little messy, so I will rebase and squash it before landing it.

Copy link
Contributor

@sauclovian-g sauclovian-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable

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.

3 participants