Use cargo rustc instead of setting RUSTFLAGS
This commit is contained in:
parent
de6afbc261
commit
cce2b0ae9c
|
|
@ -11,11 +11,10 @@ been desugared away (as an example, `for` loops are converted into a
|
||||||
This chapter covers the main concepts of the HIR.
|
This chapter covers the main concepts of the HIR.
|
||||||
|
|
||||||
You can view the HIR representation of your code by passing the
|
You can view the HIR representation of your code by passing the
|
||||||
`-Zunpretty=hir-tree` flag to rustc, for example by setting the `RUSTFLAGS`
|
`-Zunpretty=hir-tree` flag to rustc:
|
||||||
environment variable:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
RUSTFLAGS=-Zunpretty=hir-tree cargo build
|
cargo rustc -- -Zunpretty=hir-tree
|
||||||
```
|
```
|
||||||
|
|
||||||
### Out-of-band storage and the `Crate` type
|
### Out-of-band storage and the `Crate` type
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue