Skip to content

Commit f58dfe9

Browse files
authored
Document -Zunpretty=thir-tree (#1128)
* document -Zunpretty=thir-tree * Update position/wording
1 parent 1e6c7fb commit f58dfe9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/thir.md

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ will be allocated. Dropping this arena will result in the THIR being destroyed,
3939
which is useful to keep peak memory in check. Having a THIR representation of
4040
all bodies of a crate in memory at the same time would be very heavy.
4141

42+
You can get a debug representation of the THIR by passing the `-Zunpretty=thir-tree` flag
43+
to `rustc`.
44+
4245
[thir-docs]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/index.html
4346
[`thir::Expr`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/struct.Expr.html
4447
[`build_thir`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/fn.build_thir.html

0 commit comments

Comments
 (0)