Skip to content

Commit 24d20b4

Browse files
committed
Set RUSTC_ICE=0 in uitests and cargo dev lint
1 parent 17a61b2 commit 24d20b4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

clippy_dev/src/lint.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ pub fn run<'a>(path: &str, args: impl Iterator<Item = &'a String>) {
2020
.args(["--edition", "2021"])
2121
.arg(path)
2222
.args(args)
23+
// Prevent rustc from creating `rustc-ice-*` files the console output is enough.
24+
.env("RUSTC_ICE", "0")
2325
.status(),
2426
);
2527
} else {
@@ -32,6 +34,8 @@ pub fn run<'a>(path: &str, args: impl Iterator<Item = &'a String>) {
3234
let status = Command::new(cargo_clippy_path())
3335
.arg("clippy")
3436
.args(args)
37+
// Prevent rustc from creating `rustc-ice-*` files the console output is enough.
38+
.env("RUSTC_ICE", "0")
3539
.current_dir(path)
3640
.status();
3741

tests/compile-test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ fn base_config(test_dir: &str) -> (Config, Args) {
146146
);
147147

148148
config.program.args.extend(EXTERN_FLAGS.iter().map(OsString::from));
149+
// Prevent rustc from creating `rustc-ice-*` files the console output is enough.
150+
config.program.envs.push(("RUSTC_ICE".into(), Some("0".into())));
149151

150152
if let Some(host_libs) = option_env!("HOST_LIBS") {
151153
let dep = format!("-Ldependency={}", Path::new(host_libs).join("deps").display());

0 commit comments

Comments
 (0)