Use cargo rustc instead of setting RUSTFLAGS

This commit is contained in:
Phil Ellison 2018-02-07 19:14:58 +00:00
parent de6afbc261
commit cce2b0ae9c
1 changed files with 2 additions and 3 deletions

View File

@ -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