diff options
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/hir.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/hir.md b/src/doc/rustc-dev-guide/src/hir.md index 160b4764520..18a9f4dd91a 100644 --- a/src/doc/rustc-dev-guide/src/hir.md +++ b/src/doc/rustc-dev-guide/src/hir.md @@ -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 |
