Optionally don't steal the THIR

This commit is contained in:
Nadrieril 2025-06-01 17:29:33 +02:00
parent 9b0268a43b
commit 1e169d8dc4
5 changed files with 25 additions and 4 deletions

View file

@ -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.