rust-lang / rust-lang/rust-playground

Allow pretty printing the AST/HIR

Open
#502 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Rust
Stars
1.4k
Forks
267
Avg merge
3h 2m
Merged PRs (30d)
6

Description

It would be really neat if there was an option to dump the AST and HIR representations of programs alongside the option to dump the MIR representation. This would be invaluable when working on the compiler.

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

The issue names no files or tests. Start by locating the existing MIR dump option and the compiler entry points for AST and HIR representations; determine how those dumps should be exposed alongside MIR. Done means the Playground offers the requested option and produces AST and HIR output for a program.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.