Skip to content

Commit

Permalink
Auto merge of #13469 - ehuss:windows-unused-imports, r=weihanglo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Feb 21, 2024
2 parents 3fcbf73 + 27f84f6 commit be41d1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testsuite/profile_trim_paths.rs
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit be41d1e

Please sign in to comment.