From f58dfe98ad5ee7faa18bb73564533e247f979bc1 Mon Sep 17 00:00:00 2001 From: Smittyvb Date: Thu, 13 May 2021 14:51:43 -0400 Subject: [PATCH] Document -Zunpretty=thir-tree (#1128) * document -Zunpretty=thir-tree * Update position/wording --- src/thir.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/thir.md b/src/thir.md index b023eb2e2..0a0218c6b 100644 --- a/src/thir.md +++ b/src/thir.md @@ -39,6 +39,9 @@ will be allocated. Dropping this arena will result in the THIR being destroyed, which is useful to keep peak memory in check. Having a THIR representation of all bodies of a crate in memory at the same time would be very heavy. +You can get a debug representation of the THIR by passing the `-Zunpretty=thir-tree` flag +to `rustc`. + [thir-docs]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/index.html [`thir::Expr`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/struct.Expr.html [`build_thir`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/fn.build_thir.html