Auto merge of #12605 - xFrednet:00000-ignore-ice, r=y21
Ignore `rustc-ice-` files When ui-test detects a crash, it writes it into a `rustc-ice-*` file. I find it a bit annoying that git always want's to add them. So this just adds these files to our `.gitignore` :D --- changelog: none
This commit is contained in:
commit
41e814a554
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
# Generated by ui-test
|
||||
rustc-ice-*
|
||||
|
||||
# Used by CI to be able to push:
|
||||
/.github/deploy_key
|
||||
out
|
||||
|
@ -20,6 +20,8 @@ pub fn run<'a>(path: &str, args: impl Iterator<Item = &'a String>) {
|
||||
.args(["--edition", "2021"])
|
||||
.arg(path)
|
||||
.args(args)
|
||||
// Prevent rustc from creating `rustc-ice-*` files the console output is enough.
|
||||
.env("RUSTC_ICE", "0")
|
||||
.status(),
|
||||
);
|
||||
} else {
|
||||
@ -32,6 +34,8 @@ pub fn run<'a>(path: &str, args: impl Iterator<Item = &'a String>) {
|
||||
let status = Command::new(cargo_clippy_path())
|
||||
.arg("clippy")
|
||||
.args(args)
|
||||
// Prevent rustc from creating `rustc-ice-*` files the console output is enough.
|
||||
.env("RUSTC_ICE", "0")
|
||||
.current_dir(path)
|
||||
.status();
|
||||
|
||||
|
@ -146,6 +146,8 @@ fn base_config(test_dir: &str) -> (Config, Args) {
|
||||
);
|
||||
|
||||
config.program.args.extend(EXTERN_FLAGS.iter().map(OsString::from));
|
||||
// Prevent rustc from creating `rustc-ice-*` files the console output is enough.
|
||||
config.program.envs.push(("RUSTC_ICE".into(), Some("0".into())));
|
||||
|
||||
if let Some(host_libs) = option_env!("HOST_LIBS") {
|
||||
let dep = format!("-Ldependency={}", Path::new(host_libs).join("deps").display());
|
||||
|
Loading…
Reference in New Issue
Block a user