Add a description of `unpretty=hir` to the HIR docs (#1842)

This commit is contained in:
kim / Motoyuki Kimura 2023-12-29 10:07:07 +09:00 committed by GitHub
parent df5223139a
commit 03cf281953
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@ You can view the HIR representation of your code by passing the
cargo rustc -- -Z unpretty=hir-tree
```
You can also use the `-Z unpretty=hir` option to generate a HIR
that is closer to the original source code expression:
```bash
cargo rustc -- -Z unpretty=hir
```
## Out-of-band storage and the `Crate` type
The top-level data-structure in the HIR is the [`Crate`], which stores