Skip to content

Commit 141d9dc

Browse files
committed
remove unused imports from rmake tests
1 parent 19469cb commit 141d9dc

File tree

30 files changed

+20
-52
lines changed

30 files changed

+20
-52
lines changed

tests/run-make/CURRENT_RUSTC_VERSION/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// Check that the `CURRENT_RUSTC_VERSION` placeholder is correctly replaced by the current
44
// `rustc` version and the `since` property in feature stability gating is properly respected.
55

6-
use std::path::PathBuf;
7-
86
use run_make_support::{aux_build, rfs, rustc, source_root};
97

108
fn main() {

tests/run-make/arguments-non-c-like-enum/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
use run_make_support::{cc, extra_c_flags, extra_cxx_flags, run, rustc, static_lib_name};
55

66
pub fn main() {
7-
use std::path::Path;
8-
97
rustc().input("nonclike.rs").crate_type("staticlib").run();
108
cc().input("test.c")
119
.input(static_lib_name("nonclike"))

tests/run-make/c-link-to-rust-staticlib/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
//@ ignore-cross-compile
55

6-
use std::fs;
7-
86
use run_make_support::rfs::remove_file;
97
use run_make_support::{cc, extra_c_flags, run, rustc, static_lib_name};
108

tests/run-make/comment-section/rmake.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
// FIXME(jieyouxu): check cross-compile setup
88
//@ ignore-cross-compile
99

10-
use std::path::PathBuf;
11-
12-
use run_make_support::{cwd, env_var, llvm_readobj, rfs, run_in_tmpdir, rustc};
10+
use run_make_support::{cwd, env_var, llvm_readobj, rfs, rustc};
1311

1412
fn main() {
1513
let target = env_var("TARGET");

tests/run-make/compressed-debuginfo/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// FIXME: This test isn't comprehensive and isn't covering all possible combinations.
77

8-
use run_make_support::{assert_contains, cmd, llvm_readobj, run_in_tmpdir, rustc};
8+
use run_make_support::{assert_contains, llvm_readobj, run_in_tmpdir, rustc};
99

1010
fn check_compression(compression: &str, to_find: &str) {
1111
run_in_tmpdir(|| {

tests/run-make/const_fn_mir/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
//@ needs-unwind
44

5-
use run_make_support::{cwd, diff, rustc};
5+
use run_make_support::{diff, rustc};
66

77
fn main() {
88
rustc().input("main.rs").emit("mir").output("dump-actual.mir").run();

tests/run-make/crate-loading/rmake.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
//@ ignore-wasm32
33
//@ ignore-wasm64
44

5-
use run_make_support::rfs::copy;
6-
use run_make_support::{assert_contains, rust_lib_name, rustc};
5+
use run_make_support::{rust_lib_name, rustc};
76

87
fn main() {
98
rustc().input("multiple-dep-versions-1.rs").run();

tests/run-make/dylib-soname/rmake.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//@ only-linux
55
//@ ignore-cross-compile
66

7-
use run_make_support::regex::Regex;
87
use run_make_support::{cmd, run_in_tmpdir, rustc};
98

109
fn main() {

tests/run-make/extern-flag-disambiguates/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ ignore-cross-compile
22

3-
use run_make_support::{cwd, run, rustc};
3+
use run_make_support::{run, rustc};
44

55
// Attempt to build this dependency tree:
66
//

tests/run-make/ice-dep-cannot-find-dep/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// If we used `rustc` the additional '-L rmake_out' option would allow rustc to
1717
// actually find the crate.
1818

19-
use run_make_support::{bare_rustc, rfs, rust_lib_name, rustc};
19+
use run_make_support::{bare_rustc, rust_lib_name, rustc};
2020

2121
fn main() {
2222
rustc().crate_name("a").crate_type("rlib").input("a.rs").arg("--verbose").run();

tests/run-make/incr-test-moved-file/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//@ ignore-nvptx64-nvidia-cuda
1515
// FIXME: can't find crate for 'std'
1616

17-
use run_make_support::{rfs, rust_lib_name, rustc};
17+
use run_make_support::{rfs, rustc};
1818

1919
fn main() {
2020
rfs::create_dir("incr");

tests/run-make/incremental-debugger-visualizer/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// (in this case, foo.py and foo.natvis) are picked up when compiling incrementally.
33
// See https://github.com/rust-lang/rust/pull/111641
44

5-
use std::io::Read;
6-
75
use run_make_support::{invalid_utf8_contains, invalid_utf8_not_contains, rfs, rustc};
86

97
fn main() {

tests/run-make/lto-readonly-lib/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
//@ ignore-cross-compile
99

10-
use run_make_support::{rfs, run, rust_lib_name, rustc, test_while_readonly};
10+
use run_make_support::{run, rust_lib_name, rustc, test_while_readonly};
1111

1212
fn main() {
1313
rustc().input("lib.rs").run();

tests/run-make/multiple-emits/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use run_make_support::{cwd, path, rustc};
1+
use run_make_support::{path, rustc};
22

33
fn main() {
44
rustc().input("foo.rs").emit("asm,llvm-ir").output("out").run();

tests/run-make/naked-symbol-visibility/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use run_make_support::object::read::{File, Object, Symbol};
44
use run_make_support::object::ObjectSymbol;
55
use run_make_support::targets::is_windows;
6-
use run_make_support::{dynamic_lib_name, env_var, rfs, rustc};
6+
use run_make_support::{dynamic_lib_name, rfs, rustc};
77

88
fn main() {
99
let rdylib_name = dynamic_lib_name("a_rust_dylib");

tests/run-make/print-check-cfg/rmake.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ extern crate run_make_support;
44

55
use std::collections::HashSet;
66
use std::iter::FromIterator;
7-
use std::ops::Deref;
87

98
use run_make_support::rustc;
109

tests/run-make/print-native-static-libs/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
//@ ignore-cross-compile
1313
//@ ignore-wasm
1414

15-
use std::io::BufRead;
16-
1715
use run_make_support::{is_msvc, rustc};
1816

1917
fn main() {

tests/run-make/redundant-libs/rmake.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
//@ ignore-cross-compile
1212
// Reason: the compiled binary is executed
1313

14-
use run_make_support::{
15-
build_native_dynamic_lib, build_native_static_lib, cwd, is_msvc, rfs, run, rustc,
16-
};
14+
use run_make_support::{build_native_dynamic_lib, build_native_static_lib, run, rustc};
1715

1816
fn main() {
1917
build_native_dynamic_lib("foo");

tests/run-make/reproducible-build-2/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// 2. When the sysroot gets copied, some symlinks must be re-created,
1414
// which is a privileged action on Windows.
1515

16-
use run_make_support::{bin_name, rfs, rust_lib_name, rustc};
16+
use run_make_support::{rfs, rust_lib_name, rustc};
1717

1818
fn main() {
1919
// test 1: fat lto

tests/run-make/reset-codegen-1/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use std::path::Path;
1111

12-
use run_make_support::{bin_name, rfs, rustc};
12+
use run_make_support::{bin_name, rustc};
1313

1414
fn compile(output_file: &str, emit: Option<&str>) {
1515
let mut rustc = rustc();

tests/run-make/rlib-format-packed-bundled-libs-3/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// See https://github.com/rust-lang/rust/pull/105601
77

88
use run_make_support::{
9-
build_native_static_lib, is_msvc, llvm_ar, regex, rfs, rust_lib_name, rustc, static_lib_name,
9+
build_native_static_lib, llvm_ar, regex, rfs, rust_lib_name, rustc, static_lib_name,
1010
};
1111

1212
//@ ignore-cross-compile

tests/run-make/run-in-tmpdir-self-test/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! when returning from the closure.
44
55
use std::fs;
6-
use std::path::{Path, PathBuf};
6+
use std::path::PathBuf;
77

88
use run_make_support::{cwd, run_in_tmpdir};
99

tests/run-make/rust-lld-by-default-nightly/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
//@ ignore-stable
77
//@ only-x86_64-unknown-linux-gnu
88

9-
use std::process::Output;
10-
119
use run_make_support::regex::Regex;
1210
use run_make_support::rustc;
1311

tests/run-make/rust-lld-compress-debug-sections/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// FIXME: This test isn't comprehensive and isn't covering all possible combinations.
88

9-
use run_make_support::{assert_contains, cmd, llvm_readobj, run_in_tmpdir, rustc};
9+
use run_make_support::{assert_contains, llvm_readobj, run_in_tmpdir, rustc};
1010

1111
fn check_compression(compression: &str, to_find: &str) {
1212
run_in_tmpdir(|| {

tests/run-make/rust-lld-custom-target/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
//@ needs-rust-lld
99
//@ only-x86_64-unknown-linux-gnu
1010

11-
use std::process::Output;
12-
1311
use run_make_support::regex::Regex;
1412
use run_make_support::rustc;
1513

tests/run-make/rust-lld/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
//@ needs-rust-lld
55
//@ ignore-s390x lld does not yet support s390x as target
66

7-
use std::process::Output;
8-
97
use run_make_support::regex::Regex;
108
use run_make_support::{is_msvc, rustc};
119

tests/run-make/rustdoc-scrape-examples-remap/scrape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::path::Path;
22

3-
use run_make_support::{htmldocck, rfs, rustc, rustdoc, source_root};
3+
use run_make_support::{htmldocck, rfs, rustc, rustdoc};
44

55
pub fn scrape(extra_args: &[&str]) {
66
let out_dir = Path::new("rustdoc");

tests/run-make/sepcomp-cci-copies/rmake.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
// created for each source module (see `rustc_const_eval::monomorphize::partitioning`).
55
// See https://github.com/rust-lang/rust/pull/16367
66

7-
use run_make_support::{
8-
count_regex_matches_in_files_with_extension, cwd, has_extension, regex, rfs, rustc,
9-
shallow_find_files,
10-
};
7+
use run_make_support::{count_regex_matches_in_files_with_extension, regex, rustc};
118

129
fn main() {
1310
rustc().input("cci_lib.rs").run();

tests/run-make/sepcomp-inlining/rmake.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
// in only one compilation unit.
66
// See https://github.com/rust-lang/rust/pull/16367
77

8-
use run_make_support::{
9-
count_regex_matches_in_files_with_extension, cwd, has_extension, regex, rfs, rustc,
10-
shallow_find_files,
11-
};
8+
use run_make_support::{count_regex_matches_in_files_with_extension, regex, rustc};
129

1310
fn main() {
1411
rustc().input("foo.rs").emit("llvm-ir").codegen_units(3).arg("-Zinline-in-all-cgus").run();

tests/run-make/sepcomp-separate/rmake.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
// wind up in three different compilation units.
44
// See https://github.com/rust-lang/rust/pull/16367
55

6-
use run_make_support::{
7-
count_regex_matches_in_files_with_extension, cwd, has_extension, regex, rfs, rustc,
8-
shallow_find_files,
9-
};
6+
use run_make_support::{count_regex_matches_in_files_with_extension, regex, rustc};
107

118
fn main() {
129
rustc().input("foo.rs").emit("llvm-ir").codegen_units(3).run();

0 commit comments

Comments
 (0)