Dumping HIR, THIR, cargo rustc -- -Z unpretty=hir-tree ;

I am referring to:

The HIR (High-level IR) - Rust Compiler Development Guide
The THIR (Typed High-level IR) - Rust Compiler Development Guide

These representations can be dumped via the cargo commands of:

cargo rustc -- -Z unpretty=hir-tree
... thir-tree

Are there short programs that do the same ? I.e. I am looking for minimal rust code, where I point it at a directory (the root of a crate) and it returns for me the hir-tree + thir-tree.


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.