Merge pull request #46 from theotherphil/dumphir

Explain how to dump HIR
This commit is contained in:
Niko Matsakis 2018-02-08 04:13:33 -05:00 committed by GitHub
commit e17efcf9e7
1 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,13 @@ are converted into a `loop` and do not appear in the HIR).
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:
```
cargo rustc -- -Zunpretty=hir-tree
```
### Out-of-band storage and the `Crate` type
The top-level data-structure in the HIR is the `Crate`, which stores