Skip to content

Commit

Permalink
Merge pull request rust-lang#46 from theotherphil/dumphir
Browse files Browse the repository at this point in the history
Explain how to dump HIR
  • Loading branch information
nikomatsakis authored Feb 8, 2018
2 parents 6ebe10d + 5ba0d6b commit 39bf7d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/hir.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39bf7d6

Please sign in to comment.