about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2025-06-01 17:29:33 +0200
committerNadrieril <nadrieril+git@gmail.com>2025-06-01 19:14:13 +0200
commit1e169d8dc406ff2eb5cd38b35053e2f50cbb0f54 (patch)
tree05df1177cc191c4ee7771f3958476b940883ded2 /src
parent9b0268a43b0a5b58f50c96ded25364037c019a61 (diff)
downloadrust-1e169d8dc406ff2eb5cd38b35053e2f50cbb0f54.tar.gz
rust-1e169d8dc406ff2eb5cd38b35053e2f50cbb0f54.zip
Optionally don't steal the THIR
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/compiler-flags/no-steal-thir.md7
1 files changed, 7 insertions, 0 deletions
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.