Explain how to dump HIR
This commit is contained in:
parent
0d2e27c3d0
commit
885d05a33a
1 changed files with 8 additions and 0 deletions
|
|
@ -10,6 +10,14 @@ been desugared away (as an example, `for` loops are converted into a
|
|||
|
||||
This chapter covers the main concepts of the HIR.
|
||||
|
||||
You can view the HIR representation of your code by passing the
|
||||
`-Zunpretty=hir-tree` flag to rustc, for example by setting the `RUSTFLAGS`
|
||||
environment variable:
|
||||
|
||||
```
|
||||
RUSTFLAGS=-Zunpretty=hir-tree cargo build
|
||||
```
|
||||
|
||||
### Out-of-band storage and the `Crate` type
|
||||
|
||||
The top-level data-structure in the HIR is the `Crate`, which stores
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue