From 94eeebb189d5da882d5a7fbd3a04afd082be3a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20S=C3=B8holm?= Date: Sun, 30 Mar 2025 04:33:03 +0200 Subject: [PATCH] Fix compilation of compile_fail_utils when not using rustup (#18394) # Objective Currently the `compile_fail_utils` crate fails to compile (ironic) when the `RUSTUP_HOME` env var isn't set. This has been the case for a long time, but I only noticed it recently due to rust-analyzer starting to show the error. ## Solution Only filter the logs for the `RUSTUP_HOME` variable if it's set. --- tools/compile_fail_utils/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/compile_fail_utils/src/lib.rs b/tools/compile_fail_utils/src/lib.rs index 46e975a29f..ecd4f34c68 100644 --- a/tools/compile_fail_utils/src/lib.rs +++ b/tools/compile_fail_utils/src/lib.rs @@ -59,7 +59,9 @@ fn basic_config(root_dir: impl Into, args: &Args) -> ui_test::Result