rust-lang / rust-lang/rustc_public
Improve emit=stable-mir
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
We have merged PR #117745 in the rustc repository, which enables users to use the dump() functionality for inspecting functions. Additionally, it provides the -Zunpretty=stable-mir to the compiler. However, this implementation is still in its early stages. Our ultimate goal is to emulate the MIR output, albeit in a stable_mir format. This approach allows us the flexibility to deviate as necessary, tailoring the output to meet our specific requirements.
I would like to use this issue to follow development and improvements to emit functionality of stable_mir.
- Fix binder printing, it looks ugly now we could mimic
mirto pretty print this - Once https://github.com/rust-lang/rust/pull/118015 lands we should print
tyofPlace - We should pretty print
TyKind::AliasandTyKind::Bound
Will edit this as I found more issues.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing PR #117745 and the current -Zunpretty=stable-mir and dump() functionality. Compare its output with MIR, then investigate the listed binder, Place type, TyKind::Alias, and TyKind::Bound printing issues. Done means the stable_mir output addresses the applicable checklist items.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100