about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2024-08-09 20:01:25 -0400
committerBen Kimock <kimockb@gmail.com>2024-08-09 20:01:25 -0400
commitf595539b8101f03cfbc6d75c0b3a9ec2ffb72679 (patch)
tree989f0b1ef6ee4eca0c3972165df1ee17069f85c0
parent86e7875c13f048ed03d413aa83215df94f0467e8 (diff)
Fix dump-ice-to-disk for RUSTC_ICE=0 users
-rw-r--r--tests/run-make/dump-ice-to-disk/rmake.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run-make/dump-ice-to-disk/rmake.rs b/tests/run-make/dump-ice-to-disk/rmake.rs
index 2fb5c825064..1e2885fb137 100644
--- a/tests/run-make/dump-ice-to-disk/rmake.rs
+++ b/tests/run-make/dump-ice-to-disk/rmake.rs
@@ -9,7 +9,7 @@
 use run_make_support::{cwd, has_extension, has_prefix, rfs, rustc, shallow_find_files};
 
 fn main() {
-    rustc().input("lib.rs").arg("-Ztreat-err-as-bug=1").run_fail();
+    rustc().env("RUSTC_ICE", cwd()).input("lib.rs").arg("-Ztreat-err-as-bug=1").run_fail();
     let default = get_text_from_ice(".").lines().count();
     clear_ice_files();