Skip to content

Rename stable_mir and rustc_smir #143848

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

Merged
merged 1 commit into from
Jul 14, 2025
Merged

Rename stable_mir and rustc_smir #143848

merged 1 commit into from
Jul 14, 2025

Conversation

makai410
Copy link
Contributor

This PR only renames the two crate names.

There is no doubt that we want to rename stable_mir to rustc_public, while it hasn't been discussed yet that what the new name for rustc_smir should be.

This PR proposes a new name for rustc_smir, that is rustc_public_shim, since rustc_smir now is mostly a proxy to do calls to rustc queries and the public API of rustc that is invoked by the rustc_public crate.

However, I don't think that name is good enough. I hope there would be a way better name.

r? @oli-obk

@rustbot rustbot added A-meta Area: Issues & PRs about the rust-lang/rust repository itself S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 12, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jul 12, 2025

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

triagebot.toml has been modified, there may have been changes to the review queue.

cc @davidtwco, @wesleywiser

@oli-obk
Copy link
Contributor

oli-obk commented Jul 14, 2025

considering the crate hosts the Bridge trait, maybe rustc_public_bridge would fit?

@makai410
Copy link
Contributor Author

considering the crate hosts the Bridge trait, maybe rustc_public_bridge would fit?

I'd say this one is better^^

@makai410
Copy link
Contributor Author

Actually there are still bunches of docs, struct names and directory names that need updating. I'd like to do these changes as follow-ups for better clarity.

@oli-obk
Copy link
Contributor

oli-obk commented Jul 14, 2025

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jul 14, 2025

📌 Commit 6598c61 has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 14, 2025
bors added a commit that referenced this pull request Jul 14, 2025
Rollup of 8 pull requests

Successful merges:

 - #141809 (Don't call WSACleanup on process exit)
 - #143710 (Updates to random number generation APIs)
 - #143848 (Rename `stable_mir` and `rustc_smir`)
 - #143855 (Port `#[omit_gdb_pretty_printer_section]` to the new attribute parsing)
 - #143868 (warn on align on fields to avoid breaking changes)
 - #143870 ([COMPILETEST-UNTANGLE 6/N] Use `TestSuite` enum instead of stringly-typed test suites)
 - #143901 (Region constraint nits)
 - #143903 (Fix typos in documentation files)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit c59bc44 into rust-lang:master Jul 14, 2025
11 checks passed
@rustbot rustbot added this to the 1.90.0 milestone Jul 14, 2025
rust-timer added a commit that referenced this pull request Jul 14, 2025
Rollup merge of #143848 - makai410:smir-rename, r=oli-obk

Rename `stable_mir` and `rustc_smir`

This PR only renames the two crate names.

There is no doubt that we want to rename `stable_mir` to `rustc_public`, while it hasn't been discussed yet that what the new name for `rustc_smir` should be.

This PR proposes a new name for `rustc_smir`, that is `rustc_public_shim`, since `rustc_smir` now is mostly a proxy to do calls to rustc queries and the public API of rustc that is invoked by the `rustc_public` crate.

However, I don't think that name is good enough. I hope there would be a way better name.

r? `@oli-obk`
github-actions bot pushed a commit to devnexen/miri that referenced this pull request Jul 15, 2025
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#141809 (Don't call WSACleanup on process exit)
 - rust-lang/rust#143710 (Updates to random number generation APIs)
 - rust-lang/rust#143848 (Rename `stable_mir` and `rustc_smir`)
 - rust-lang/rust#143855 (Port `#[omit_gdb_pretty_printer_section]` to the new attribute parsing)
 - rust-lang/rust#143868 (warn on align on fields to avoid breaking changes)
 - rust-lang/rust#143870 ([COMPILETEST-UNTANGLE 6/N] Use `TestSuite` enum instead of stringly-typed test suites)
 - rust-lang/rust#143901 (Region constraint nits)
 - rust-lang/rust#143903 (Fix typos in documentation files)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-meta Area: Issues & PRs about the rust-lang/rust repository itself S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants