about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-08-10 16:23:54 +0200
committerGitHub <noreply@github.com>2024-08-10 16:23:54 +0200
commit48fd9fdd4294e24c906f0ee578a2ec959538e4b4 (patch)
treedd801435e5a8062b4b2a582ebcb7c1974179b6c0
parent0d0265c1f0f6a0a30664e346b43886e46647c622 (diff)
parentf595539b8101f03cfbc6d75c0b3a9ec2ffb72679 (diff)
downloadrust-48fd9fdd4294e24c906f0ee578a2ec959538e4b4.tar.gz
rust-48fd9fdd4294e24c906f0ee578a2ec959538e4b4.zip
Rollup merge of #128909 - saethlin:run-make-ice-yes, r=jieyouxu
Fix dump-ice-to-disk for RUSTC_ICE=0 users

Before this change, the test fails if you run it with `RUSTC_ICE=0`.
-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 a64103fa516..260abf3aa6f 100644
--- a/tests/run-make/dump-ice-to-disk/rmake.rs
+++ b/tests/run-make/dump-ice-to-disk/rmake.rs
@@ -13,7 +13,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();