From 1e169d8dc406ff2eb5cd38b35053e2f50cbb0f54 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 1 Jun 2025 17:29:33 +0200 Subject: Optionally don't steal the THIR --- src/doc/unstable-book/src/compiler-flags/no-steal-thir.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/doc/unstable-book/src/compiler-flags/no-steal-thir.md (limited to 'src/doc') diff --git a/src/doc/unstable-book/src/compiler-flags/no-steal-thir.md b/src/doc/unstable-book/src/compiler-flags/no-steal-thir.md new file mode 100644 index 00000000000..d83677d1711 --- /dev/null +++ b/src/doc/unstable-book/src/compiler-flags/no-steal-thir.md @@ -0,0 +1,7 @@ +# `no-steal-thir` + +By default, to save on memory, the THIR body (obtained from the `tcx.thir_body` query) is stolen +once no longer used. This is inconvenient for authors of rustc drivers who want to access the THIR. + +This option disables the stealing. This has no observable effect on compiler behavior, only on +memory usage. -- cgit 1.4.1-3-g733a5