Make a few cleanup MIR passes public#93813
Merged
bors merged 1 commit intorust-lang:masterfrom Feb 10, 2022
Merged
Conversation
wesleywiser
approved these changes
Feb 9, 2022
Member
wesleywiser
left a comment
There was a problem hiding this comment.
My preference would be to only make things public that are actually useful outside of rustc_mir_transform. If you find other passes that you'd like to use, feel free to open additional PRs in the future.
Contributor
|
Could you also add a comment stating why those modules are public? This will avoid breaking your use case once again. |
Contributor
Author
|
Done. |
Contributor
I guess source code should be commented, not PR description ) |
Contributor
Author
|
Did I not push? |
Contributor
Author
|
Oops |
2f88d92 to
c97302e
Compare
Member
|
@bors r+ rollup |
Collaborator
|
📌 Commit c97302e has been approved by |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Feb 10, 2022
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#91443 (Better suggestions when user tries to collect into an unsized `[_]`) - rust-lang#91504 (`#[used(linker)]` attribute) - rust-lang#93503 (debuginfo: Fix DW_AT_containing_type vtable debuginfo regression) - rust-lang#93753 (Complete removal of #[main] attribute from compiler) - rust-lang#93799 (Fix typo in `std::fmt` docs) - rust-lang#93813 (Make a few cleanup MIR passes public) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zulip Discussion: https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/Making.20passes.20public.20again
This makes a few passes which used to be public, public again. I'd like to use these to clean up MIR code for my external rustc driver. The other option would be to make them all public, but I don't know if that's warranted / useful.
r? @wesleywiser