about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-06-12 10:53:06 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-06-12 11:44:33 +0200
commitd79aeaf8981f331f16295e119d4a226842feaf3c (patch)
treeeb63a0cd93b1a714377bf623f64470d7c760e97a
parentf2cce98149b78e2880e2e81e03c2cc94ff5a29a5 (diff)
downloadrust-d79aeaf8981f331f16295e119d4a226842feaf3c.tar.gz
rust-d79aeaf8981f331f16295e119d4a226842feaf3c.zip
Remove unused import in `run-make/prefer-dylib/rmake.rs`
-rw-r--r--tests/run-make/prefer-dylib/rmake.rs1
-rw-r--r--tests/run-make/prefer-rlib/rmake.rs7
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/run-make/prefer-dylib/rmake.rs b/tests/run-make/prefer-dylib/rmake.rs
index ad9fd8a15a2..5b2b0649673 100644
--- a/tests/run-make/prefer-dylib/rmake.rs
+++ b/tests/run-make/prefer-dylib/rmake.rs
@@ -2,7 +2,6 @@
 
 use run_make_support::{cwd, dynamic_lib_name, read_dir, run, run_fail, rustc};
 use std::fs::remove_file;
-use std::process::Command;
 
 fn main() {
     rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").arg("-Cprefer-dynamic").run();
diff --git a/tests/run-make/prefer-rlib/rmake.rs b/tests/run-make/prefer-rlib/rmake.rs
index 1d336a07903..96861a264e6 100644
--- a/tests/run-make/prefer-rlib/rmake.rs
+++ b/tests/run-make/prefer-rlib/rmake.rs
@@ -3,14 +3,13 @@
 
 //@ ignore-cross-compile
 
-use run_make_support::{dynamic_lib_name, path, run, rust_lib_name, rustc};
-use std::fs::remove_file;
+use run_make_support::{dynamic_lib_name, fs_wrapper, path, run, rust_lib_name, rustc};
 
 fn main() {
     rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").run();
     assert!(path(rust_lib_name("bar")).exists());
     rustc().input("foo.rs").run();
-    remove_file(rust_lib_name("bar")).unwrap();
-    remove_file(dynamic_lib_name("bar")).unwrap();
+    fs_wrapper::remove_file(rust_lib_name("bar"));
+    fs_wrapper::remove_file(dynamic_lib_name("bar"));
     run("foo");
 }