-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Implement RustcInternal
for StableBody
#127782
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Implement RustcInternal
for StableBody
#127782
Conversation
This comment has been minimized.
This comment has been minimized.
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.
can you please move your changes to its own module internal/mir.rs
?
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.
I pulled all impls for MIR items into its own file (some of them were already implemented before me)
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #127840) made this pull request unmergeable. Please resolve the merge conflicts. |
3322a10
to
d08c4f4
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
This PR changes Stable MIR cc @oli-obk, @celinval, @ouz-a These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
I don't think we should be doing this PR. The existing back-conversions are fairly minimal for the core types like Instead things like data flow can be implemented out of tree on top of the stable MIR APIs. |
Thanks for your feedback, @oli-obk. We implemented these conversions for our immediate need and wanted to see whether it would make sense to contribute them back to StableMIR. I agree that implementing data flow analysis infrastructure on top of StableMIR is better, and this is something we would like to do in the future. |
StableMIR has a way to convert internal
Body
into its stable counterpart, but not the other way around. Being able to perform the conversion both ways could allow using tools likerustc_mir_dataflow
, which do not understand stableBody
, from StableMIR.r? celinval