about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-06-02 15:19:19 +0200
committerGitHub <noreply@github.com>2025-06-02 15:19:19 +0200
commitf8e756b0eb5a6ed95d888e4c2429aae5eaca9126 (patch)
tree7c586e47f66579469778018c45b6a943bcd249b0 /compiler/rustc_interface/src
parentaeb72a0669fda604b63ad43c924b93503646970a (diff)
parent1e169d8dc406ff2eb5cd38b35053e2f50cbb0f54 (diff)
downloadrust-f8e756b0eb5a6ed95d888e4c2429aae5eaca9126.tar.gz
rust-f8e756b0eb5a6ed95d888e4c2429aae5eaca9126.zip
Rollup merge of #141865 - Nadrieril:dont-steal-thir, r=oli-obk
Optionally don't steal the THIR

The THIR being stolen is a recurrent pain for authors of rustc drivers. This makes it optional, so that the `thir_body` query can still be used after analysis of the crate has completed.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 068d96c860f..558f13a832c 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -715,6 +715,7 @@ fn test_unstable_options_tracking_hash() {
     untracked!(no_analysis, true);
     untracked!(no_leak_check, true);
     untracked!(no_parallel_backend, true);
+    untracked!(no_steal_thir, true);
     untracked!(parse_crate_root_only, true);
     // `pre_link_arg` is omitted because it just forwards to `pre_link_args`.
     untracked!(pre_link_args, vec![String::from("abc"), String::from("def")]);