remove unused imports from rmake tests

This commit is contained in:
Rémy Rakic 2024-12-23 09:14:30 +00:00
parent 0eca4dd320
commit d6a9ad6190
7 changed files with 5 additions and 12 deletions

View file

@ -10,7 +10,7 @@ use std::collections::HashMap;
use std::path::PathBuf;
use std::rc::Rc;
use gimli::{AttributeValue, EndianRcSlice, Reader, RunTimeEndian};
use gimli::{EndianRcSlice, Reader, RunTimeEndian};
use object::{Object, ObjectSection};
use run_make_support::{gimli, object, rfs, rustc};

View file

@ -7,7 +7,7 @@
use run_make_support::object::Endianness;
use run_make_support::object::read::archive::ArchiveFile;
use run_make_support::object::read::elf::{FileHeader as _, SectionHeader as _};
use run_make_support::rfs::{read, read_dir};
use run_make_support::rfs::read;
use run_make_support::{has_prefix, has_suffix, object, path, rustc, shallow_find_files, target};
type FileHeader = run_make_support::object::elf::FileHeader64<Endianness>;

View file

@ -15,10 +15,7 @@
// Reason: this should be ignored in cg_clif (Cranelift) CI and anywhere
// else that uses panic=abort.
use std::ffi::{self, CStr, CString};
use std::path::PathBuf;
use run_make_support::{libc, run, rustc};
use run_make_support::{libc, rustc};
fn main() {
rustc().input("test.rs").arg("--test").run();

View file

@ -6,7 +6,7 @@
// Ensure that on stable we don't suggest restricting with an unsafe trait and we continue
// mentioning the rest of the obligation chain.
use run_make_support::{diff, rust_lib_name, rustc};
use run_make_support::{diff, rustc};
fn main() {
let out = rustc()

View file

@ -13,7 +13,7 @@
// Tracking issue: https://github.com/rust-lang/rust/issues/128602
// Discussion: https://github.com/rust-lang/rust/pull/128407#discussion_r1702439172
use run_make_support::{cc, cwd, has_extension, has_prefix, run, rustc, shallow_find_files};
use run_make_support::{cc, has_extension, has_prefix, run, rustc, shallow_find_files};
fn main() {
rustc().input("foo.rs").crate_type("bin").emit("obj").panic("abort").run();

View file

@ -1,8 +1,6 @@
// This test ensures that all items from `foo` are correctly generated into the `redirect-map.json`
// file with `--generate-redirect-map` rustdoc option.
use std::path::Path;
use run_make_support::rfs::read_to_string;
use run_make_support::{path, rustdoc, serde_json};

View file

@ -1,8 +1,6 @@
// This test verifies that rustdoc `-o -` prints JSON on stdout and doesn't generate
// a JSON file.
use std::path::PathBuf;
use run_make_support::path_helpers::{cwd, has_extension, read_dir_entries_recursive};
use run_make_support::{rustdoc, serde_json};