diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2025-06-01 17:29:33 +0200 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2025-06-01 19:14:13 +0200 |
| commit | 1e169d8dc406ff2eb5cd38b35053e2f50cbb0f54 (patch) | |
| tree | 05df1177cc191c4ee7771f3958476b940883ded2 /src | |
| parent | 9b0268a43b0a5b58f50c96ded25364037c019a61 (diff) | |
| download | rust-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.md | 7 |
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. |
