rust-lang / rust-lang/rustc_public

Improve emit=stable-mir

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

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.

Will edit this as I found more issues.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.