Skip to content

Commit 84ea9ec

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)