Skip to content

Commit 5ba0d6b

Browse files
committed
Use cargo rustc instead of setting RUSTFLAGS
1 parent a2d2cfa commit 5ba0d6b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/hir.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ been desugared away (as an example, `for` loops are converted into a
1111
This chapter covers the main concepts of the HIR.
1212

1313
You can view the HIR representation of your code by passing the
14-
`-Zunpretty=hir-tree` flag to rustc, for example by setting the `RUSTFLAGS`
15-
environment variable:
14+
`-Zunpretty=hir-tree` flag to rustc:
1615

1716
```
18-
RUSTFLAGS=-Zunpretty=hir-tree cargo build
17+
cargo rustc -- -Zunpretty=hir-tree
1918
```
2019

2120
### Out-of-band storage and the `Crate` type

0 commit comments

Comments
 (0)