Skip to content

Commit

Permalink
Remove unused import in run-make/prefer-dylib/rmake.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 12, 2024
1 parent f2cce98 commit d79aeaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion tests/run-make/prefer-dylib/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
7 changes: 3 additions & 4 deletions tests/run-make/prefer-rlib/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit d79aeaf

Please sign in to comment.