Skip to content

Commit a8cbf66

Browse files
authored
Add a description of unpretty=hir to the HIR docs (rust-lang#1842)
1 parent 29d53e3 commit a8cbf66

File tree

1 file changed

+8
-0
lines changed
  • src/doc/rustc-dev-guide/src

1 file changed

+8
-0
lines changed

Diff for: src/doc/rustc-dev-guide/src/hir.md

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ You can view the HIR representation of your code by passing the
2020
cargo rustc -- -Z unpretty=hir-tree
2121
```
2222

23+
24+
You can also use the `-Z unpretty=hir` option to generate a HIR
25+
that is closer to the original source code expression:
26+
27+
```bash
28+
cargo rustc -- -Z unpretty=hir
29+
```
30+
2331
## Out-of-band storage and the `Crate` type
2432

2533
The top-level data-structure in the HIR is the [`Crate`], which stores

0 commit comments

Comments
 (0)