From 27f84f6b6896f38e2cde63520e33c92a5ecb4232 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 20 Feb 2024 16:28:37 -0800 Subject: [PATCH] Fix unused imports on Windows. --- tests/testsuite/profile_trim_paths.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/testsuite/profile_trim_paths.rs b/tests/testsuite/profile_trim_paths.rs index 435b79d7631..67a7785fe66 100644 --- a/tests/testsuite/profile_trim_paths.rs +++ b/tests/testsuite/profile_trim_paths.rs @@ -1,12 +1,10 @@ //! Tests for `-Ztrim-paths`. use cargo_test_support::basic_manifest; -use cargo_test_support::compare::match_contains; use cargo_test_support::git; use cargo_test_support::paths; use cargo_test_support::project; use cargo_test_support::registry::Package; -use cargo_util::is_ci; #[cargo_test] fn gated_manifest() { @@ -696,6 +694,9 @@ fn custom_build_env_var_trim_paths() { #[cfg(unix)] #[cargo_test(requires_lldb, nightly, reason = "-Zremap-path-scope is unstable")] fn lldb_works_after_trimmed() { + use cargo_test_support::compare::match_contains; + use cargo_util::is_ci; + if !is_ci() { // On macOS lldb requires elevated privileges to run developer tools. // See rust-lang/cargo#13413