Conversation
|
This PR changes Stable MIR cc @oli-obk, @celinval, @spastorino These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
|
Failed to set assignee to
|
|
Could not assign reviewer from: |
There was a problem hiding this comment.
Sorry for the piecemeal comments. I was playing with this code while creating a test driver for stable-mir. I was wondering if we could move this to the stable_mir module.
There was a problem hiding this comment.
see #115187 (comment) I think it should stay in rustc_internal for now.
c2c1e7e to
c71443d
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Shouldn't we move |
9c3b71f to
031a961
Compare
There was a problem hiding this comment.
We should not have any rustc_* stuff inside the stable_mir modules. Everything should be abstracted via the Context trait. Otherwise we will not be able to build the SMIR crate on stable on crates.io in the future.
In this case, we cannot abstract it, because in order to get a Context instance, we first need to start up rustc. Let's figure out how to handle this best separately. for now, move this logic to where rustc_internal::run lives.
This comment has been minimized.
This comment has been minimized.
|
@bors delegate+ r= me with CI fixed and commits squashed |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#111580 (Don't ICE on layout computation failure) - rust-lang#114923 (doc: update lld-flavor ref) - rust-lang#115174 (tests: add test for rust-lang#67992) - rust-lang#115187 (Add new interface to smir) - rust-lang#115300 (Tweaks and improvements on SMIR around generics_of and predicates_of) - rust-lang#115340 (some more is_zst that should be is_1zst) r? `@ghost` `@rustbot` modify labels: rollup
Removes the boiler plate from
crate-info.rs, and creates new interface for the smir.Addressing rust-lang/project-stable-mir#23
r? @spastorino