Skip to content

Commit

Permalink
Add a description of unpretty=hir to the HIR docs (#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
mox692 committed Dec 29, 2023
1 parent cb22c58 commit 84ea9ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/hir.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84ea9ec

Please sign in to comment.