Skip to content

Commit d6a9ad6

Browse files
committed
remove unused imports from rmake tests
1 parent 0eca4dd commit d6a9ad6

File tree

7 files changed

+5
-12
lines changed

7 files changed

+5
-12
lines changed

tests/run-make/embed-source-dwarf/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::collections::HashMap;
1010
use std::path::PathBuf;
1111
use std::rc::Rc;
1212

13-
use gimli::{AttributeValue, EndianRcSlice, Reader, RunTimeEndian};
13+
use gimli::{EndianRcSlice, Reader, RunTimeEndian};
1414
use object::{Object, ObjectSection};
1515
use run_make_support::{gimli, object, rfs, rustc};
1616

tests/run-make/libstd-no-protected/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use run_make_support::object::Endianness;
88
use run_make_support::object::read::archive::ArchiveFile;
99
use run_make_support::object::read::elf::{FileHeader as _, SectionHeader as _};
10-
use run_make_support::rfs::{read, read_dir};
10+
use run_make_support::rfs::read;
1111
use run_make_support::{has_prefix, has_suffix, object, path, rustc, shallow_find_files, target};
1212

1313
type FileHeader = run_make_support::object::elf::FileHeader64<Endianness>;

tests/run-make/libtest-thread-limit/rmake.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
// Reason: this should be ignored in cg_clif (Cranelift) CI and anywhere
1616
// else that uses panic=abort.
1717

18-
use std::ffi::{self, CStr, CString};
19-
use std::path::PathBuf;
20-
21-
use run_make_support::{libc, run, rustc};
18+
use run_make_support::{libc, rustc};
2219

2320
fn main() {
2421
rustc().input("test.rs").arg("--test").run();

tests/run-make/missing-unstable-trait-bound/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Ensure that on stable we don't suggest restricting with an unsafe trait and we continue
77
// mentioning the rest of the obligation chain.
88

9-
use run_make_support::{diff, rust_lib_name, rustc};
9+
use run_make_support::{diff, rustc};
1010

1111
fn main() {
1212
let out = rustc()

tests/run-make/no-alloc-shim/rmake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// Tracking issue: https://github.com/rust-lang/rust/issues/128602
1414
// Discussion: https://github.com/rust-lang/rust/pull/128407#discussion_r1702439172
1515

16-
use run_make_support::{cc, cwd, has_extension, has_prefix, run, rustc, shallow_find_files};
16+
use run_make_support::{cc, has_extension, has_prefix, run, rustc, shallow_find_files};
1717

1818
fn main() {
1919
rustc().input("foo.rs").crate_type("bin").emit("obj").panic("abort").run();

tests/run-make/rustdoc-map-file/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// This test ensures that all items from `foo` are correctly generated into the `redirect-map.json`
22
// file with `--generate-redirect-map` rustdoc option.
33

4-
use std::path::Path;
5-
64
use run_make_support::rfs::read_to_string;
75
use run_make_support::{path, rustdoc, serde_json};
86

tests/run-make/rustdoc-output-stdout/rmake.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// This test verifies that rustdoc `-o -` prints JSON on stdout and doesn't generate
22
// a JSON file.
33

4-
use std::path::PathBuf;
5-
64
use run_make_support::path_helpers::{cwd, has_extension, read_dir_entries_recursive};
75
use run_make_support::{rustdoc, serde_json};
86

0 commit comments

Comments
 (0)