Skip to content

Commit be41d1e

Browse files
committed
Auto merge of #13469 - ehuss:windows-unused-imports, r=weihanglo
Fix unused imports on Windows. These imports were causing a warning on Windows because they are only used in a section that is conditional for Unix.
2 parents 3fcbf73 + 27f84f6 commit be41d1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/testsuite/profile_trim_paths.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
//! Tests for `-Ztrim-paths`.
22
33
use cargo_test_support::basic_manifest;
4-
use cargo_test_support::compare::match_contains;
54
use cargo_test_support::git;
65
use cargo_test_support::paths;
76
use cargo_test_support::project;
87
use cargo_test_support::registry::Package;
9-
use cargo_util::is_ci;
108

119
#[cargo_test]
1210
fn gated_manifest() {
@@ -696,6 +694,9 @@ fn custom_build_env_var_trim_paths() {
696694
#[cfg(unix)]
697695
#[cargo_test(requires_lldb, nightly, reason = "-Zremap-path-scope is unstable")]
698696
fn lldb_works_after_trimmed() {
697+
use cargo_test_support::compare::match_contains;
698+
use cargo_util::is_ci;
699+
699700
if !is_ci() {
700701
// On macOS lldb requires elevated privileges to run developer tools.
701702
// See rust-lang/cargo#13413

0 commit comments

Comments
 (0)